1. 程式人生 > >VRRP網關冗余

VRRP網關冗余

loop top 3.1.1 連線 ica stop out vpd 來看

實驗要求

1、R1創建環回口,模擬外網

2、R2,R3使用VRRP技術

3、路由器之間使用EIGRP路由協議



實驗拓撲

技術分享圖片


實驗配置


R1(config)#interface loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#int e0/0
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int e0/1
R1(config-if)#ip address 13.1.1.1 255.255.255.0

R1(config-if)#no shutdown
R1(config)#router eigrp 100
R1(config-router)#no auto-summary
R1(config-router)#network 1.1.1.0 0.0.0.255
R1(config-router)#network 12.1.1.0 0.0.0.255
R1(config-router)#network 13.1.1.0 0.0.0.255
R1開啟環回口以及直連線路並配置IP,進入eigrp關閉自動匯總,宣告自己的直連路由條目


R2(config)#int e0/1
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int e0/0
R2(config-if)#ip add 100.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#vrrp 100 ip 100.1.1.100
R2(config-if)#vrrp 100 priority 110
R2(config-if)#vrrp 100 track 10 decrement 20
R2(config-if)#exit
R2(config)#track 10 interface ethernet 0/1 line-protocol
R2(config)#router eigrp 100
R2(config-router)#no auto-summary
R2(config-router)#network 1.1.1.0 0.0.0.255
R2(config-router)#network 12.1.1.0 0.0.0.255

R2配置為VRRP主用,優先級設置為110(默認為100), 並且跟蹤檢測e0/1接口,若出現問題則優先級降低20。


R3(config)#int e0/1
R3(config-if)#ip add 13.1.1.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int e0/0
R3(config-if)#ip add 100.1.1.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#vrrp 100 ip 100.1.1.100
R3(config)#router eigrp 100
R3(config-router)#no auto-summary
R3(config-router)#network 13.1.1.0 0.0.0.255
R3(config-router)#network 100.1.1.0 0.0.0.255
R3為VRRP備用,設置虛擬網關即可。

為了驗證使用PC trace 1.1.1.1 來看具體路徑
PC1> ip 100.1.1.1 255.255.255.0 100.1.1.100
Checking for duplicate address...
PC1 : 100.1.1.1 255.255.255.0 gateway 100.1.1.100

PC1> trace 1.1.1.1
trace to 1.1.1.1, 8 hops max, press Ctrl+C to stop
1 100.1.1.2 0.955 ms 0.000 ms 1.958 ms
2 12.1.1.1 1.956 ms
發現是可以通的
關閉R2的e1/0試試
PC1> trace 1.1.1.1
trace to 1.1.1.1, 8 hops max, press Ctrl+C to stop
1 100.1.1.3 0.908 ms 1.899 ms 1.007 ms
2 13.1.1.1 1.029 ms
試驗成功

VRRP網關冗余