R1#show run inter tunnel 0Building configuration...Current configuration : 289 bytes!interface Tunne
.
R1#show run inter tunnel 0
Building configuration...
Current configuration : 289 bytes
!
interface Tunnel0
ip address 10.1.1.1 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R1#show run | s route
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 18.1.1.8
R2#show run inter tunnel 0
Building configuration...
Current configuration : 361 bytes
!
interface Tunnel0
ip address 10.1.1.2 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.1.1.1 18.1.1.1
ip nhrp map multicast 18.1.1.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip nhrp shortcut
ip nhrp redirect
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R2#show run inter tu
R2#show run inter tunnel 1
Building configuration...
Current configuration : 289 bytes
!
interface Tunnel1
ip address 10.2.1.2 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
ip ospf network point-to-multipoint
tunnel source Serial1/1
tunnel mode gre multipoint
tunnel key 100
End
R2#show run | s route
router ospf 1
router-id 2.2.2.2
network 10.0.0.0 0.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 28.1.1.8
ip route 39.1.1.0 255.255.255.0 29.1.1.9
ip route 49.1.1.0 255.255.255.0 29.1.1.9
ip route 59.1.1.0 255.255.255.0 29.1.1.9
ip route 69.1.1.0 255.255.255.0 29.1.1.9
ip route 79.1.1.0 255.255.255.0 29.1.1.9
R2#
R3#show run inter tunnel 0
Building configuration...
Current configuration : 361 bytes
!
interface Tunnel0
ip address 10.1.1.3 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.1.1.1 18.1.1.1
ip nhrp map multicast 18.1.1.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip nhrp shortcut
ip nhrp redirect
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R3#show run inter tunnel 1
Building configuration...
Current configuration : 289 bytes
!
interface Tunnel1
ip address 10.3.1.3 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
ip ospf network point-to-multipoint
tunnel source Serial1/1
tunnel mode gre multipoint
tunnel key 100
End
R3#show run | s route
router ospf 1
router-id 3.3.3.3
network 10.0.0.0 0.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 38.1.1.8
ip route 29.1.1.0 255.255.255.0 39.1.1.9
ip route 49.1.1.0 255.255.255.0 39.1.1.9
ip route 59.1.1.0 255.255.255.0 39.1.1.9
ip route 69.1.1.0 255.255.255.0 39.1.1.9
ip route 79.1.1.0 255.255.255.0 39.1.1.9
R3#
R3#show ip inter b
Interface IP-Address OK? Method Status Protocol
Serial0/0 unassigned YES NVRAM administratively down down
Serial0/1 unassigned YES NVRAM administratively down down
Serial0/2 unassigned YES NVRAM administratively down down
Serial0/3 unassigned YES NVRAM administratively down down
Serial1/0 38.1.1.3 YES NVRAM up up
Serial1/1 39.1.1.3 YES NVRAM up up
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down
Loopback0 10.100.3.3 YES NVRAM up up
Tunnel0 10.1.1.3 YES NVRAM up up
Tunnel1 10.3.1.3 YES NVRAM up up
R3#
R4#show run inter tunnel 1
Building configuration...
Current configuration : 343 bytes
!
interface Tunnel1
ip address 10.2.1.4 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.2.1.2 29.1.1.2
ip nhrp map multicast 29.1.1.2
ip nhrp network-id 100
ip nhrp nhs 10.2.1.2
ip nhrp shortcut
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R4#show run | s route
router ospf 1
router-id 4.4.4.4
network 10.0.0.0 0.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 49.1.1.9
R4#
R5#show run inter tunnel 1
Building configuration...
Current configuration : 343 bytes
!
interface Tunnel1
ip address 10.2.1.5 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.2.1.2 29.1.1.2
ip nhrp map multicast 29.1.1.2
ip nhrp network-id 100
ip nhrp nhs 10.2.1.2
ip nhrp shortcut
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R5#show run | s route
router ospf 1
router-id 5.5.5.5
network 10.0.0.0 0.255.255.255 area 0
ip route
R6#show run inter tunnel 1
Building configuration...
Current configuration : 343 bytes
!
interface Tunnel1
ip address 10.3.1.6 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.3.1.3 39.1.1.3
ip nhrp map multicast 39.1.1.3
ip nhrp network-id 100
ip nhrp nhs 10.3.1.3
ip nhrp shortcut
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R6#show run | s route
router ospf 1
router-id 6.6.6.6
network 10.0.0.0 0.255.255.255 area 0
ip route
R7#show run inter tunnel 1
Building configuration...
Current configuration : 311 bytes
!
interface Tunnel1
ip address 10.3.1.7 255.255.255.0
no ip redirects
ip nhrp authentication cisco123
ip nhrp map 10.3.1.3 39.1.1.3
ip nhrp network-id 100
ip nhrp nhs 10.3.1.3
ip nhrp shortcut
ip ospf network point-to-multipoint
tunnel source Serial1/0
tunnel mode gre multipoint
tunnel key 100
end
R7#show run | s route
router ospf 1
router-id 7.7.7.7
network 10.0.0.0 0.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 79.1.1.9
R7#
R8#show ip inter b
Interface IP-Address OK? Method Status Protocol
Serial0/0 unassigned YES NVRAM administratively down down
Serial0/1 unassigned YES NVRAM administratively down down
Serial0/2 unassigned YES NVRAM administratively down down
Serial0/3 unassigned YES NVRAM administratively down down
Serial1/0 18.1.1.8 YES NVRAM up up
Serial1/1 28.1.1.8 YES NVRAM up up
Serial1/2 38.1.1.8 YES NVRAM up up
Serial1/3 unassigned YES NVRAM administratively down down
R8#R9#show ip inter b
Interface IP-Address OK? Method Status Protocol
Serial0/0 unassigned YES NVRAM administratively down down
Serial0/1 unassigned YES NVRAM administratively down down
Serial0/2 unassigned YES NVRAM administratively down down
Serial0/3 unassigned YES NVRAM administratively down down
Serial1/0 29.1.1.9 YES NVRAM up up
Serial1/1 39.1.1.9 YES NVRAM up up
Serial1/2 49.1.1.9 YES NVRAM up up
Serial1/3 59.1.1.9 YES NVRAM up up
Serial2/0 69.1.1.9 YES NVRAM up up
Serial2/1 79.1.1.9 YES NVRAM up up
Serial2/2 unassigned YES NVRAM administratively down down
Serial2/3 unassigned YES NVRAM administratively down down
R9#
结果
R6#traceroute 10.100.5.5 source 10.100.6.6
Type escape sequence to abort.
Tracing the route to 10.100.5.5
VRF info: (vrf in name/id, vrf out name/id)
1 10.3.1.3 18 msec 21 msec 20 msec
2 10.1.1.1 47 msec 35 msec 34 msec
3 10.1.1.2 64 msec
10.2.1.5 35 msec *
R6#traceroute 10.100.5.5 source 10.100.6.6
Type escape sequence to abort.
Tracing the route to 10.100.5.5
VRF info: (vrf in name/id, vrf out name/id)
* 1 10.2.1.5 27 msec 35 msec**