18.4 配置DHCP Realy

图片[1]-18.4 配置DHCP Realy-大赛人网
图18-4 DHCP Realy配置网络拓扑

1.R1使用地址池方式配置DHCP服务

[R1]ip pool dsrw
[R1-ip-pool-dsrw]network 192.168.1.0 mask 255.255.255.0
[R1-ip-pool-dsrw]gateway-list 192.168.1.254
[R1-ip-pool-dsrw]dns-list 114.114.114.114 8.8.8.8
[R1]dhcp enable
[R1-GigabitEthernet0/0/0]dhcp select global

2.R2配置中继

[R2]dhcp enable
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.1.254 24
[R2-GigabitEthernet0/0/1]dhcp select relay 
[R2-GigabitEthernet0/0/1]dhcp relay server-ip 12.1.1.1

3.R1、R2配置静态路由

[R1]ip route-static 192.168.1.0 24 12.1.1.2 
[R2]ip route-static 0.0.0.0 0.0.0.0 12.1.1.1

4.PC1获取动态IP地址

PC>ipconfig 
Link local IPv6 address...........: fe80::5689:98ff:fed9:1a54
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.1.252
Subnet mask.......................: 255.255.255.0
Gateway...........................: 192.168.1.254
Physical address..................: 54-89-98-D9-1A-54
DNS server........................: 114.114.114.114
                                    8.8.8.8
© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容