通过GRE隧道解决OSPF非骨干区域无ABR的问题

发布时间:2021-08-04 10:22
 

拓扑如下图所示:

Area 2区域没有ABR(区域边界路由器),也就没有3LSA(网络汇总LSA,由ABR路由器发送网络汇总LSA到一个区域,用来通告该区域外部的目的地址),因此需要让R2成为ABR。这个问题可以通过在R1R2上建立GRE隧道解决。具体配置如下:

R1:

interface Tunnel0/0/0 \\创建GRE隧道

ip address 12.1.1.1 255.255.255.0

tunnel-protocol gre

source 192.168.12.1

quit

ospf 1

area 0.0.0.0

network 12.1.1.1 0.0.0.0 \\将Tunnel0/0/0加入OSPF区域0中

R2:

interface Tunnel0/0/0

ip address 12.1.1.2 255.255.255.0

tunnel-protocol gre

source 192.168.12.2

quit

ospf 1

area 0.0.0.0

network 12.1.1.2 0.0.0.0
本文导读