日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

VRRP网关冗余

發布時間:2023/11/29 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 VRRP网关冗余 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

實驗要求
?
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
試驗成功

轉載于:https://blog.51cto.com/11334960/2307781

總結

以上是生活随笔為你收集整理的VRRP网关冗余的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。