Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

4.3. Ethernet0/0 - Wan口配置

4.3.1. DHCP 動態IP地址

			
<Netkiller>system-view
System View: return to User View with Ctrl+Z.

interface Ethernet0/0
 port link-mode route
 nat outbound
 ip address dhcp-alloc
 ipsec policy navigator
#

[Netkiller]display dhcp client
Ethernet0/0 DHCP client information:
 Current machine state: BOUND
 Allocated IP: 172.16.0.17 255.255.255.0
 Allocated lease: 172800 seconds, T1: 86400 seconds, T2: 151200 seconds
 DHCP server: 172.16.0.254


[Netkiller]display dhcp client verbose
Ethernet0/0 DHCP client information:
 Current machine state: BOUND
 Allocated IP: 172.16.0.17 255.255.255.0
 Allocated lease: 172800 seconds, T1: 86400 seconds, T2: 151200 seconds
 Lease from 2007.01.01 00:36:08   to   2007.01.03 00:36:08
 DHCP server: 172.16.0.254
 Transaction ID: 0x5d84030b
 Default router: 172.16.0.254
 DNS server: 114.114.114.114
 DNS server: 114.114.115.115
 Client ID: 3030-3066-2e65-3263-
            642e-3733-6430-2d45-
            7468-6572-6e65-7430-
            2f30
 T1 will timeout in 0 day 23 hours 55 minutes 11 seconds.
 			
			

4.3.2. 固定IP地址

interface Ethernet0/0
 port link-mode route
 nat outbound
 ip address 192.168.4.4 255.255.255.0