DMVPN和OSPF(两个隧道dynamic路由)

请帮助我解决与dmvpn GRE隧道之间的路由问题。

我有一个DMVPN HUB和SPOKE拓扑结构。 HUB在Internet上有公网IP地址。 SPOKE有两个用于冗余的ISP。

我已经决定在HUB和SPOKE之间创build两个冗余GRE隧道。 我configuration了GRE隧道,很好地configuration了ipsecconfiguration文件。 HUB和SPOKE通过这个GRE隧道相互看好。 但是我也面临着在它们之间configurationOSPF来为我的拓扑提供冗余的问题。 我已经决定创build两个OSPF进程(每个隧道一个),并configuration具有不同度量值的networking,因为我在OSPF路由之间有优先权:

OSPFconfiguration(HUB):

router ospf 100 router-id 172.20.10.1 network 172.20.10.1 0.0.0.0 area 0 //GRE TUNNEL IP ADDRESS (1-ST) default-information originate always metric 50 router ospf 101 router-id 172.21.10.1 network 172.21.10.1 0.0.0.0 area 0 //GRE TUNNEL IP ADDRESS (2-ND) default-information originate always metric 70 

OSPFconfiguration(SPOKE)

 router ospf 100 router-id 172.20.10.13 network 10.0.13.1 0.0.0.0 area 13 //NETWORK BEHIND SPOKE network 172.20.10.13 0.0.0.0 area 0 //GRE TUNNEL IP ADDRESS (1-ST) router ospf 101 router-id 172.21.10.13 network 10.0.13.1 0.0.0.0 area 13 //NETWORK BEHIND SPOKE network 172.21.10.13 0.0.0.0 area 0 //GRE TUNNEL IP ADDRESS (2-ND) 

从您的configuration中我可以看到,我发送了默认路由以使用不同的度量值。 从SPOKE通过我的两个GRE隧道发送SPOKE后面的networking路由。 我还为不同的隧道接口configuration了不同的IP ospf成本值。 这里是我的隧道接口的configuration。

 interface Tunnel100 ip address 172.20.10.13 255.255.254.0 no ip redirects ip mtu 1400 ip nhrp authentication nhrppass ip nhrp map 172.20.10.1 "HUB IP" ip nhrp map multicast "HUB IP" ip nhrp network-id 100 ip nhrp holdtime 300 ip nhrp nhs 172.20.10.1 ip nhrp registration no-unique ip ospf network point-to-multipoint ip ospf cost 50 tunnel source FastEthernet4 tunnel mode gre multipoint tunnel key 100 tunnel route-via FastEthernet4 mandatory tunnel protection ipsec profile DMVPN100 interface Tunnel101 ip address 172.21.10.13 255.255.254.0 no ip redirects ip mtu 1400 ip nhrp authentication nhrppass ip nhrp map 172.21.10.1 "HUB IP" ip nhrp map multicast "HUB IP" ip nhrp network-id 101 ip nhrp holdtime 300 ip nhrp nhs 172.21.10.1 ip nhrp registration no-unique ip ospf network point-to-multipoint ip ospf cost 70 tunnel source Vlan1 tunnel mode gre multipoint tunnel key 101 tunnel route-via Vlan1 mandatory tunnel protection ipsec profile DMVPN101 

因此,我正面临OSPF路由的一些问题。

我看到从HUB的两条默认路由转到SPOKE。 如果主路由(具有更好的度量值)处于closures状态,则备份路由处于活动状态。 它工作正常。 但是我的HUB上有路由问题。 我发现它只能通过第一个通道接口接收到一个SPOKE后面的networking路由。 如果这个接口closures,我没有通过第二个隧道接口到这个networking的备份路由。

请给我一个build议,我做错了什么?

感谢advace的任何帮助。

你不能在同一个接口上运行两个ospf进程。 连接到分支LAN(networking10.0.13.1 0.0.0.0区域13)的接口在两个ospf进程中都被通告。 在这两种情况下使用相同的ospf进程,并在接口上使用ospf开销。 你会得到想要的结果。