一、拓扑图
二、要求
1.使用rip协议
2.要求不关闭水平分割 全网可达,互为hub互为spoken
3.全网可达
三、主要配置
[r2]interface Tunnel 0/0/0
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source 23.1.1.1
[r2-Tunnel0/0/0]nhrp entry multicast dynamic
[r2-Tunnel0/0/0]ip address 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 37.1.1.2 register
[r2-Tunnel0/0/0]nhrp entry 10.1.1.4 38.1.1.2 register
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.1 255.255.255.0
tunnel-protocol gre p2mp
source 23.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.2 34.1.1.2 register
nhrp entry 10.1.1.3 37.1.1.2 register
nhrp entry 10.1.1.4 38.1.1.2 register
#
[r2-Tunnel0/0/0]qu
[r2]display cu | in static
ip route-static 37.1.1.0 255.255.255.0 23.1.1.2
ip route-static 38.1.1.0 255.255.255.0 23.1.1.2
[r2]ip route-static 34.1.1.0 24 23.1.1.2
[r2]display cu | in static
ip route-static 34.1.1.0 255.255.255.0 23.1.1.2
ip route-static 37.1.1.0 255.255.255.0 23.1.1.2
ip route-static 38.1.1.0 255.255.255.0 23.1.1.2
[r2]rip 1
[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