r1路由
[r1]ip route-static 0.0.0.0 0 14.1.1.4
[r1]ip route-static 0.0.0.0 0 41.1.1.4
r2路由
[r2]ip route-static 0.0.0.0 0 24.1.1.4
r3路由
[r3]ip route-static 0.0.0.0 0 34.1.1.4
r5路由
[r5]ip route-static 0.0.0.0 0 45.1.1.4
r6路由
[r6]ip route-static 0.0.0.0 0 46.1.1.4
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp
[R1-Tunnel0/0/1]ip address 20.1.1.1 24
[R1-Tunnel0/0/1]source 14.1.1.1
[R1-Tunnel0/0/1]nhrp network-id 101
[R1-Tunnel0/0/1]ospf network-type broadcast
[R1-Tunnel0/0/1]nhrp entry multicast dynamic
[R5]interface Tunnel 0/0/1
[R5-Tunnel0/0/1]tunnel-protocol gre p2mp
[R5-Tunnel0/0/1]ip address 20.1.1.5 24
[R5-Tunnel0/0/1]source 45.1.1.4
[R5-Tunnel0/0/1]nhrp network-id 101
[R5-Tunnel0/0/1]ospf network-type broadcast
[R5-Tunnel0/0/1]nhrp entry multicast dynamic
[R6]interface Tunnel 0/0/1
[R6-Tunnel0/0/1]tunnel-protocol gre p2mp
[R6-Tunnel0/0/1]ip address 20.1.1.6 24
[R6-Tunnel0/0/1]source 46.1.1.6
[R6-Tunnel0/0/1]nhrp network-id 101
[R6-Tunnel0/0/1]ospf network-type broadcast
[R6-Tunnel0/0/1]nhrp entry 20.1.1.1 14.1.1.1 register
[R6-Tunnel0/0/1]nhrp entry 20.1.1.5 15.1.1.5 register
OSPF协议
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
测试