DHCP中继

拓扑如下:

QQ截图20141203152158

R0配置:

(config)#ip dhcp pool aaa
(dhcp-config)#network 8.8.8.0 255.255.255.0
(dhcp-config)#default-router 8.8.8.1
(dhcp-config)#dns-server 114.114.114.114

(config)#ip dhcp pool bbb
(dhcp-config)#network 88.88.88.0 255.255.255.0
(dhcp-config)#default-router 88.88.88.1
(dhcp-config)#dns-server 114.114.114.114

(config)#ip dhcp excluded-address 8.8.8.1 8.8.8.100
(config)#ip dhcp excluded-address 88.88.88.1 88.88.88.100

(config)#interface GigabitEthernet0/0
(config-if)#ip address 192.168.1.1 255.255.255.0

(config)#router eigrp 100
(config-router)#network 8.0.0.0
(config-router)#network 192.168.1.0
(config-router)#network 88.0.0.0

R1配置:

(config)#interface GigabitEthernet0/0
(config-if)#ip address 192.168.1.2 255.255.255.0

(config)#interface GigabitEthernet0/1
(config-if)#ip address 8.8.8.1 255.255.255.0
(config-if)#ip helper-address 192.168.1.1

(config)#interface GigabitEthernet0/2
(config-if)#ip address 88.88.88.1 255.255.255.0
(config-if)#ip helper-address 192.168.1.1

(config)#router eigrp 100
(config-router)#network 8.0.0.0
(config-router)#network 192.168.1.0
(config-router)#network 88.0.0.0

PC可获取IP

1

image

posted @ 2014-08-09 12:00  airoot  阅读(285)  评论(0编辑  收藏  举报