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

路由器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

posted @ 2020-12-22 22:58  灰黑色帆布鞋  阅读(412)  评论(0)    收藏  举报