配置
[r1-Tunnel0/0/1]nhrp network-id 100
interface Tunnel0/0/1
tunnel-protocol gre p2mp
source 15.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
return
[r1-Tunnel0/0/1]ip ad 10.1.2.1 24
interface Tunnel0/0/1
ip address 10.1.2.1 255.255.255.0
tunnel-protocol gre p2mp
source 15.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
[r1]dis nhrp peer a
[r1]dis nhrp peer all
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
10.1.2.2 32 25.1.1.1 10.1.2.2 dynamic route tunnel
Tunnel interface: Tunnel0/0/1
Created time : 00:03:52
Expire time : 01:56:08
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
10.1.2.3 32 35.1.1.1 10.1.2.3 dynamic route tunnel
Tunnel interface: Tunnel0/0/1
Created time : 00:01:07
Expire time : 01:58:53
Number of nhrp peers: 2
[r1]ping 10.1.2.3
PING 10.1.2.3: 56 data bytes, press CTRL_C to break
Reply from 10.1.2.3: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 10.1.2.3: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 10.1.2.3: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.1.2.3: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 10.1.2.3: bytes=56 Sequence=5 ttl=255 time=30 ms
— 10.1.2.3 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/28/40 ms
[r1]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
— 10.1.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/24/30 ms
[r1]rip
[r1-rip-1]version 2
[r1-rip-1]un summary
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r1]q
sy
[r1]dis ip rou protocol rip
Route Flags: R - relay, D - download to fib
Public routing table : RIP
Destinations : 3 Routes : 3
RIP routing table status :
Destinations : 3 Routes : 3
Destination/Mask Proto Pre Cost Flags NextHop Interface