静态路由
192.168.1.0/27 骨干
192.168.1.0/30
192.168.1.4/30
192.168.1.8/30
192.168.1.12 /30
192.168.1.16/30
192.168.1.20/30
R1 192.168.1.32/27
192.168.1.32/28
192.168.1.48/28
R2 192.168.1.64/27
192.168.1.64/28
192.168.1.80/28
R3192.168.1.96/27
R4 192.168.1.128/27
192.168.1.128/28
192.168.1.144/28
R5 192.168.1.160/27
16.1.1.0 24
dhcp服务器配置:
[r3-GigabitEthernet0/0/2]ip add 192.168.1.97 27
[r3]dhcp enable
[r3]ip pool huizi
[r3-ip-pool-huizi]network 192.168.1.96 mask 27
[r3-ip-pool-huizi]gateway-list 192.168.1.97
[r3-ip-pool-huizi]dns-list 114.114.114.114 8.8.8.8
[r3-GigabitEthernet0/0/2]dhcp select global
缺省路由
[r1]ip route-static 0.0.0.0 0 192.168.1.2
[r2]ip route-static 0.0.0.0 0 192.168.1.6
[r3]ip route-static 0.0.0.0 0 192.168.1.9
[r4]ip route-static 0.0.0.0 0 192.168.1.18
[r5]ip route-static 0.0.0.0 0 16.1.1.2
平时使用1000m故障时使用100m
[r4]ip route-static 192.168.1.20 30 192.168.1.22preference 61