【1】 構建拓撲並分配IP
oop
【2】配各個接口的IP
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.1.10/30
環回接口
[r4]interface LoopBack 0
[r4-LoopBack0]ip address 192.168.1.29/28
… …
… …
… …
blog
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.1.22/30
環回接口
[r5]interface LoopBack 0
[r5-LoopBack0]ip address 5.5.5.1 24
… …
… …
… …
接口
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2/30
環回接口
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.168.1.65/28
… …
… …
… …
圖片
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.13/30
環回接口
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 192.168.1.97/28
… …
… …
… …
ip
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1/30
環回接口
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.1.33/28
… …
… …
… …
路由
【3】配路由表
[r1]ip route-static 192.168.1.8 30 192.168.1.2
… …
… …
… …
it
[r2]ip route-static 192.168.1.4 30 192.168.1.1
… …
… …
… …
class
[r3]ip route-static 192.168.1.0 30 192.168.1.5
… …
… …
… …
配置
[r4]ip route-static 192.168.1.4 30 192.168.1.13
… …
… …
… …
route
[r5]ip route-static 192.168.1.0 24 192.168.1.17
… …
… …
… …
【4】缺省路由
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
[r2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.10
[r3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.14
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.22
【5】 路由黑洞
r1 0.0 3.0 實際不存在 ,將致使流量有去無回;
而路由黑洞與缺省路由相遇必然產生環路,能夠在黑洞路由器上配置一條到達彙總網段的空接口路由來防止該環路由產生
[r1]ip route-static 192.168.1.32/27 null 0
[r2]ip route-static 192.168.1.64/27 null 0
[r3]ip route-static 192.168.1.96/27 null 0
[r4]ip route-static 192.168.1.128/27 null 0
【6】靜態浮動路由
[r5]ip route-static 192.168.1.0 24 192.168.1.21 preference 61
(假設1.16/30網段爲1000M,1.20/30網段爲100M)
通過上述配置後,將全網可達,,而且當1000M故障時將自動切換爲100M。