VRRP閘道器冗餘 zhenqidong

2022-09-23 03:12:11 字數 2476 閱讀 9600

實驗要求

1、r1建立環迴口,模擬外網

2、r2,r3使用vrrp技術

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

實驗拓撲

實驗配置  

r1(config)#inte***ce 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 inte***ce 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閘道器冗餘

實驗要求 1 r1建立環迴口,模擬外網 2 r2,r3使用vrrp技術 3 路由器之間使用eigrp路由協議 實驗拓撲 實驗配置 r1 config inte ce loopback 0 r1 config if ip address 1.1.1.1 255.255.255.0 r1 config ...

vrrp 虛擬冗餘路由協議

vrrp 虛擬冗餘路由協議 介紹 vrrp 虛擬冗餘路由協議是非cisco裝置所有的一種路由備份協議,用來保證鏈路的穩定,保證鏈路可以備份的作用,vrrpl是一種容錯協議。通常,乙個網路內的所有主機 都設定一條預設路由 這樣,主機 發出的目的位址不在本網段的報文將被通過預設路由發往路由器router...

虛擬路由冗餘協議 vrrp

vrrp,virtual router redundancy protocol,中文名為虛擬路由冗餘協議,vrrp的出現就是為了解決靜態路由的單點故障問題,vrrp是通過一種競選機制來將路由的任務交給某台vrrp路由器的。keepalived高可用對之間是通過vrrp通訊的,因此,從vrrp開始講起...