DHCP DHCP中继

DHCP SERVER:
cisco(config)#int f0/0
cisco(config-if)#ip address 192.168.1.1
cisco(config-if)#no shutdown
cisco(config-if)#exit
 
cisco(config)#ip dhcp exclude-address 192.168.1.1 192.168.1.10
cisco(config)#ip dhcp pool ccnp
cisco(dhcp-config)#network 192.168.1.0 /24
cisco(dhcp-config)#default-router 192.168.1.1
cisco(dhcp-config)#dns-server 202.102.224.68
cisco(dhcp-config)#lease 3            (days)
cisco(dhcp-config)#exit
cisco(config)#exit
cisco#show ip dhcp binding
 
路由器接口开启DHCP Client:
cisco(config-if)#ip address dhcp
 
DHCP 中继:
cisco(config)#int f0/0                                            (为连接以太网接口)
cisco(config-if)#ip helper-address 192.168.2.2  (192.168.2.2为DHCP SERVER IP)
 

你可能感兴趣的:(DHCP,2012-06-15)