DHCP应用扩展——DHCP Helper

 1、原理介绍:

DHCP Helper使得DHCP应用可以跨越路由器,下面是Cisco官网示意图:

 

 

 三、实验演示:

1、实验环境:Cisco Packet Tracer 5.3

2、拓扑及配置参数:

 

 3、设备配置命令:

 DHCP_Server:

 

ip dhcp excluded-address 192.168.1.1 192.168.1.5

ip dhcp pool APAYE

 network 192.168.1.0 255.255.255.0

 default-router 192.168.1.2

 dns-server 8.8.8.8

 

interface FastEthernet0/0

 ip address 10.10.10.2 255.255.255.0

ip route 192.168.1.0 255.255.255.0 FastEthernet0/0

 

 

 DHCP_Helper:

 

interface FastEthernet0/0

 ip address 192.168.1.2 255.255.255.0

 ip helper-address 10.10.10.2

interface FastEthernet0/1

 ip address 10.10.10.1 255.255.255.0

GW:

 

interface FastEthernet0/0

 ip address 192.168.1.1 255.255.255.0

DHCP_Client:

 

interface FastEthernet0/0

 ip address dhcp

 

 

 

 4、结果验证:

DHCP_Server:

 

#sh ip dhcp binding 

IP address       Client-ID/              Lease expiration        Type

                 Hardware address

192.168.1.6      00D0.FFC0.5601           --                     Automatic

DHCP_Client:

 

#sh ip inter br

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        192.168.1.6     YES DHCP   up                    up

 

#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 6/8/10 ms

 

******************************************************

DHCP基本应用,详见:

http://wuluwa.blog.51cto.com/blog/968959/1077315