配置以太口地址:
Interface Ethernet 0
\\ 进入以太网口配置模式
No shut
 \\ 启动以太网口
Ip address 192.168.2.1 255.255.255.0
\\ 设定 IP 地址与子网掩码
ip address 192.168.1.1 255.255.255.0 secondary
\\ 设定第二地址与子网掩码
ip nat outside
\\ 设定该端口为出口
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

ip dhcp pool  B2
\\ 定义 DHCP 并命名为 vfast1
   network 192.168.2.0 255.255.255.0
\\ 发布地址池的网段
   default-router 192.168.2.254
\\ 设定网关地址
   dns-server 202.96.128.86  168.95.1.1
\\ 设置 DNS 地址
   lease 3
\\设置地址订制天数

 

ip dhcp excluded-address 192.168.2.1 192.168.2.40
\\ 设置预留地址