ip已提前配好,并且每个路由均有一个回环
首先配置中心站点这里以r2为例,对r4,r7,r8执行同样操作
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]nhrp entry multicast dynamic
[r2-Tunnel0/0/0]source 23.1.1.1
[r2-Tunnel0/0/0]ip add 10.1.1.1 24
[r2-Tunnel0/0/0]nhrp entry 10.1.1.2 34.1.1.2 register
[r2-Tunnel0/0/0]nhrp entry 10.1.1.3 35.1.1.2 register
[r2-Tunnel0/0/0]nhrp entry 10.1.1.4 36.1.1.2 register
对4个中心站点开启静态
[r2]ip route-static 2.0.0.0[r2]ip route-static 12.0.0.0
[r2]ip route-static 23.0.0.0
开启rip (所有的路由都需要开启)
[r2]rip
[r2-rip-1]version 2[r2-rip-1]network 12.0.0.0
[r2-rip-1]network 2.0.0.0
[r2-rip-1]network 10.0.0.0[r2-rip-1]default-route originate
配置完成后就全网可痛了,且没有关闭水平分割
用r1 ping r9 也是可通的