1. 程式人生 > >虛鏈路和GRE隧道解決OSPF非骨幹區域無ABR的問題

虛鏈路和GRE隧道解決OSPF非骨幹區域無ABR的問題

color png mar 區域 oss add 拓撲 ges vpd

非骨幹區域無ABR可用vlink(虛鏈路)也可以使用GRE隧道
實驗拓撲:
技術分享圖片
Area 2區域沒有ABR,也就沒有3類LSA
如何讓R2成為ABR
方法一:虛鏈路
在R1和R2上的Area 1區域創建vlink
[R1-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2
[R2-ospf-1-area-0.0.0.1]vlink-peer 1.1.1.1
R2已經成為ABR
技術分享圖片
方法二:GRE隧道
先將虛鏈路配置undo
1.在R1和R2上創建GRE隧道
[R1-Tunnel0/0/0]dis this
interface Tunnel0/0/0
ip address 12.1.1.1 255.255.255.0
tunnel-protocol gre
source 192.168.12.1
destination 192.168.12.2
[R2-Tunnel0/0/0]dis this
interface Tunnel0/0/0
destination 192.168.12.1
ip address 12.1.1.2 255.255.255.0
tunnel-protocol gre
source 192.168.12.2
2.在OSPF進程中創建區域0,並將Tunnel0/0/0加入該區域
[R1-ospf-1-area-0.0.0.0]network 12.1.1.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.2 0.0.0.0
----由於作者水平有限,本文僅供參考,有誤之處請指正

虛鏈路和GRE隧道解決OSPF非骨幹區域無ABR的問題