23.3. Ethernet0/0 - Wan口配置

23.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.
 			
			

23.3.2. 固定IP地址

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





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值