首页 > 其他 > 详细

dhcp分发地址以及静态路由设置

时间:2020-12-22 23:45:01      阅读:39      评论:0      收藏:0      [点我收藏+]

技术分享图片

路由器R1配置:
system-view
[Huawei]sysname R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R1-GigabitEthernet0/0/0]ip address 172.16.0.1 19
[R1-ip-pool-cc]network 172.16.0.0 mask 255.255.255.0
[R1-ip-pool-cc]gateway-list 172.16.0.1
[R1-ip-pool-cc]excluded-ip-address 172.16.0.200 172.16.0.254
[R1]dhcp enable
[R1-GigabitEthernet0/0/0]dhcp select global
[R1]ip route-static 172.16.64.0 19 172.16.32.2
[R1]ip route-static 172.16.96.0 19 172.16.32.2
[R1]ip route-static 172.16.128.0 19 172.16.32.2
[R1]ip route-static 172.16.160.0 19 172.16.32.2

路由器R2配置:
system-view
[Huawei]sysname R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R2-GigabitEthernet0/0/0]ip address 172.16.32.2 19
[R2-GigabitEthernet0/0/1]ip address 172.16.64.1 19
[R2-GigabitEthernet0/0/2]ip address 172.16.96.1 19
[R2]ip route-static 172.16.0.0 19 172.16.32.1
[R2]ip route-static 172.16.128.0 19 172.16.64.2
[R2]ip route-static 172.16.128.0 19 172.16.96.2
[R2]ip route-static 172.16.160.0 19 172.16.96.2
[R2]ip route-static 172.16.160.0 19 172.16.64.2
路由器R3配置:
system-view
[Huawei]sysname R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R3-GigabitEthernet0/0/0]ip address 172.16.64.2 19
[R3-GigabitEthernet0/0/1]ip address 172.16.96.2 19
[R3-GigabitEthernet0/0/2]ip address 172.16.128.1 19
[R3]ip route-static 172.16.32.0 19 172.16.64.1
[R3]ip route-static 172.16.32.0 19 172.16.96.1
[R3]ip route-static 172.16.0.0 19 172.16.96.1
[R3]ip route-static 172.16.0.0 19 172.16.64.1
[R3]ip route-static 172.16.160.0 19 172.16.128.2
路由器R4配置:
system-view
[Huawei]sysname R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R4-GigabitEthernet0/0/0]ip address 172.16.128.2 19
[R4-GigabitEthernet0/0/1]ip address 172.16.160.1 19
[R4]dhcp enable
[R4-ip-pool-vv]network 172.16.160.0 mask 255.255.255.0
[R4-ip-pool-vv]gateway-list 172.16.160.1
[R4-ip-pool-vv]excluded-ip-address 172.16.160.200 172.16.160.254
[R4-GigabitEthernet0/0/1]dhcp select global
[R4]ip route-static 172.16.64.0 19 172.16.128.1
[R4]ip route-static 172.16.96.0 19 172.16.128.1
[R4]ip route-static 172.16.32.0 19 172.16.128.1
[R4]ip route-static 172.16.0.0 19 172.16.128.1

dhcp分发地址以及静态路由设置

原文:https://www.cnblogs.com/moke9528/p/14176048.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!