1.拓扑要求
五台路由器搭建的拓扑
要求1,2:R5环回地址固定:[ff]interface LoopBack 0
[ff-LoopBack0]ip add 5.5.5.1 24
通过要求1,2可知共虚6+8=14个网段,取四位分16个
192.168.1.16/28
192.168.1.32/28
......
192.168.1.240/28
如下图为 R1 R2 R3 R4 R5 配置端口
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 28
[R1-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 28
[R2-GigabitEthernet0/0/1]ip address 192.168.1.17 28
[R3-GigabitEthernet0/0/0]ip address 192.168.1.34 28
[R3-GigabitEthernet0/0/1]ip address 192.168.1.49 28
[R4-GigabitEthernet0/0/0]ip address 192.168.1.50 28
[R4-GigabitEthernet0/0/1]ip address 192.168.1.18 28
[R4-GigabitEthernet0/0/2]ip address 192.168.1.193 28
[R4-GigabitEthernet4/0/0]ip address 192.168.1.209 28
[R5-GigabitEthernet0/0/0]ip address 192.168.1.194 28
[R5-GigabitEthernet0/0/1]ip address 192.168.1.210 28
为每个端口设置静态路由,(注意负载均衡)
例:[r1]ip route-static 192.168.1.192 28 192.168.1.34
[r1]ip route-static 192.168.1.48 28 192.168.1.34
[r1]ip route-static 192.168.1.16 28 192.168.1.2
[r1]ip route-static 192.168.1.208 28 192.168.1.2
[r1]ip route-static 192.168.1.208 28 192.168.1.34
[r1]ip route-static 192.168.1.192 28 192.168.1.2
全网可达,尽量减少每台路由器,路由表数量,避免环路,R1 R2 R3 R4 R5 不可直接静态路由连接5.5.5.0 那么在R4上设置缺省电路:[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.194
R4与R5之间正常1000m故障时100m
可袋采用浮动静态路由优先级来达成
[r4]ip route-static 5.5.5.0 24 192.168.1.194
[r4]ip route-static 5.5.5.0 24 192.168.1.210 preference 61
附录
尝试ping