要求二级分支站点直接通信
R1#sho run int tun 0
Building configuration...
Current configuration : 254 bytes
interface Tunnel0
ip address 10.1.1.1 255.255.255.0
no ip redirects
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
ip summary-address eigrp 100 10.0.0.0 255.0.0.0
tunnel source Ethernet0/0
tunnel mode gre multipoint
End
R1#sho ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel0 created 00:02:37, expire 01:59:56
Type: dynamic, Flags: router unique local
NBMA address: 100.1.16.1
(no-socket)
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:08:12, expire 01:51:47
Type: dynamic, Flags: unique registered used
NBMA address: 100.2.26.2
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:08:12, expire 01:51:48
Type: dynamic, Flags: unique registered used
NBMA address: 100.3.36.3
10.1.2.4/32 via 10.1.2.4
Tunnel0 created 00:00:03, expire 01:59:56
Type: dynamic, Flags: router implicit
NBMA address: 100.4.47.4
10.1.3.5/32 via 10.1.3.5
Tunnel0 created 00:02:37, expire 01:57:22
Type: dynamic, Flags: router implicit
NBMA address: 100.5.57.5
R1#sho ip route
Gateway of last resort is 100.1.16.6 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.1.16.6
10.0.0.0/8 is variably subnetted, 11 subnets, 3 masks
D 10.0.0.0/8 is a summary, 00:08:20, Null0
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.1/32 is directly connected, Tunnel0
D 10.1.2.0/24 [90/28160000] via 10.1.1.2, 00:08:16, Tunnel0
D 10.1.3.0/24 [90/28160000] via 10.1.1.3, 00:08:14, Tunnel0
C 10.100.1.0/24 is directly connected, Loopback0
L 10.100.1.1/32 is directly connected, Loopback0
D 10.100.2.0/24 [90/27008000] via 10.1.1.2, 00:08:16, Tunnel0
D 10.100.3.0/24 [90/27008000] via 10.1.1.3, 00:08:14, Tunnel0
D 10.100.4.0/24 [90/28288000] via 10.1.1.2, 00:08:16, Tunnel0
D 10.100.5.0/24 [90/28288000] via 10.1.1.3, 00:08:14, Tunnel0
100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 100.1.16.0/24 is directly connected, Ethernet0/0
L 100.1.16.1/32 is directly connected, Ethernet0/0
R2#sho run int tun 0
Building configuration...
Current configuration : 281 bytes
interface Tunnel0
ip address 10.1.1.2 255.255.255.0
no ip redirects
ip nhrp map 10.1.1.1 100.1.16.1
ip nhrp map multicast 100.1.16.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip nhrp shortcut
ip nhrp redirect
tunnel source Ethernet0/0
tunnel mode gre multipoint
End
R2#sho run int tun 1
Building configuration...
Current configuration : 205 bytes
interface Tunnel1
ip address 10.1.2.2 255.255.255.0
no ip redirects
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
tunnel source Ethernet0/1
tunnel mode gre multipoint
End
R2#sho ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(100)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 10.1.1.1 Tu0 13 00:50:58 21 1470 0 3
0 10.1.2.4 Tu1 14 00:50:58 1 1470 0 4
R2#sho ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel0 created 00:08:47, never expire
Type: static, Flags: used
NBMA address: 100.1.16.1
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:06:57, expire 01:56:52
Type: dynamic, Flags: router unique local
NBMA address: 100.2.26.2
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:06:55, expire 01:53:04
Type: dynamic, Flags: router
NBMA address: 100.3.36.3
10.1.2.2/32 via 10.1.1.2
Tunnel0 created 00:02:54, expire 01:57:05
Type: dynamic, Flags: router unique local
NBMA address: 100.2.26.2
(no-socket)
10.1.3.3/32 via 10.1.1.3
Tunnel0 created 00:00:03, expire 01:59:56
Type: dynamic, Flags: router rib
NBMA address: 100.3.36.3
10.1.3.5/32 via 10.1.3.5
Tunnel0 created 00:03:07, expire 01:56:52
Type: dynamic, Flags: router
NBMA address: 100.5.57.5
10.1.2.4/32 via 10.1.2.4
Tunnel1 created 00:08:47, expire 01:51:13
Type: dynamic, Flags: unique registered
NBMA address: 100.4.47.4
R2#sho ip route
Gateway of last resort is 100.2.26.6 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.2.26.6
10.0.0.0/8 is variably subnetted, 8 subnets, 3 masks
D 10.0.0.0/8 [90/27008000] via 10.1.1.1, 00:00:29, Tunnel0
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.2/32 is directly connected, Tunnel0
C 10.1.2.0/24 is directly connected, Tunnel1
L 10.1.2.2/32 is directly connected, Tunnel1
C 10.100.2.0/24 is directly connected, Loopback0
L 10.100.2.2/32 is directly connected, Loopback0
D 10.100.4.0/24 [90/27008000] via 10.1.2.4, 00:00:29, Tunnel1
100.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
C 100.2.26.0/24 is directly connected, Ethernet0/0
L 100.2.26.2/32 is directly connected, Ethernet0/0
C 100.2.27.0/24 is directly connected, Ethernet0/1
L 100.2.27.2/32 is directly connected, Ethernet0/1
S 100.3.37.3/32 [1/0] via 100.2.27.7
S 100.4.47.4/32 [1/0] via 100.2.27.7
S 100.5.57.5/32 [1/0] via 100.2.27.7
R3#sho run int tun 0
Building configuration...
Current configuration : 281 bytes
interface Tunnel0
ip address 10.1.1.3 255.255.255.0
no ip redirects
ip nhrp map 10.1.1.1 100.1.16.1
ip nhrp map multicast 100.1.16.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip nhrp shortcut
ip nhrp redirect
tunnel source Ethernet0/0
tunnel mode gre multipoint
End
R3#sho run int tun 1
Building configuration...
Current configuration : 205 bytes
interface Tunnel1
ip address 10.1.3.3 255.255.255.0
no ip redirects
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp redirect
tunnel source Ethernet0/1
tunnel mode gre multipoint
end
R3#sho ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(100)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 10.1.1.1 Tu0 12 00:52:04 23 1470 0 5
0 10.1.3.5 Tu1 14 00:52:04 15 1470 0 4
R3#sho ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel0 created 00:09:11, never expire
Type: static, Flags: used
NBMA address: 100.1.16.1
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:07:19, expire 01:52:40
Type: dynamic, Flags: router used
NBMA address: 100.2.26.2
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:07:19, expire 01:59:57
Type: dynamic, Flags: router unique local
NBMA address: 100.3.36.3
(no-socket)
10.1.2.2/32 via 10.1.1.2
Tunnel0 created 00:00:06, expire 01:59:53
Type: dynamic, Flags: router rib
NBMA address: 100.2.26.2
10.1.2.4/32 via 10.1.2.4
Tunnel0 created 00:00:02, expire 01:59:57
Type: dynamic, Flags: router
NBMA address: 100.4.47.4
10.1.3.3/32 via 10.1.1.3
Tunnel0 created 00:00:26, expire 01:59:33
Type: dynamic, Flags: router unique local
NBMA address: 100.3.36.3
(no-socket)
10.1.3.5/32 via 10.1.3.5
Tunnel1 created 00:09:10, expire 01:50:49
Type: dynamic, Flags: unique registered
NBMA address: 100.5.57.5
R3#sho ip route
Gateway of last resort is 100.3.36.6 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.3.36.6
10.0.0.0/8 is variably subnetted, 8 subnets, 3 masks
D 10.0.0.0/8 [90/27008000] via 10.1.1.1, 00:00:42, Tunnel0
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.3/32 is directly connected, Tunnel0
C 10.1.3.0/24 is directly connected, Tunnel1
L 10.1.3.3/32 is directly connected, Tunnel1
C 10.100.3.0/24 is directly connected, Loopback0
L 10.100.3.3/32 is directly connected, Loopback0
D 10.100.5.0/24 [90/27008000] via 10.1.3.5, 00:00:44, Tunnel1
100.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
S 100.2.27.2/32 [1/0] via 100.3.37.7
C 100.3.36.0/24 is directly connected, Ethernet0/0
L 100.3.36.3/32 is directly connected, Ethernet0/0
C 100.3.37.0/24 is directly connected, Ethernet0/1
L 100.3.37.3/32 is directly connected, Ethernet0/1
S 100.4.47.4/32 [1/0] via 100.3.37.7
S 100.5.57.5/32 [1/0] via 100.3.37.7
R4#sho run int tun 1
Building configuration...
Current configuration : 263 bytes
interface Tunnel1
ip address 10.1.2.4 255.255.255.0
no ip redirects
ip nhrp map 10.1.2.2 100.2.27.2
ip nhrp map multicast 100.2.27.2
ip nhrp network-id 100
ip nhrp nhs 10.1.2.2
ip nhrp shortcut
tunnel source Ethernet0/0
tunnel mode gre multipoint
End
R4#sh ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel1 created 00:01:45, expire 01:58:14
Type: dynamic, Flags: router rib
NBMA address: 100.1.16.1
10.1.1.2/32 via 10.1.2.2
Tunnel1 created 00:00:20, expire 01:59:39
Type: dynamic, Flags: router rib
NBMA address: 100.2.27.2
10.1.1.3/32 via 10.1.1.3
Tunnel1 created 00:00:46, expire 01:59:14
Type: dynamic, Flags: router
NBMA address: 100.3.36.3
10.1.2.2/32 via 10.1.2.2
Tunnel1 created 00:09:54, never expire
Type: static, Flags: used
NBMA address: 100.2.27.2
10.1.2.4/32 via 10.1.2.4
Tunnel1 created 00:03:42, expire 01:59:14
Type: dynamic, Flags: router unique local
NBMA address: 100.4.47.4
(no-socket)
10.1.3.3/32 via 10.1.1.3
Tunnel1 created 00:00:08, expire 01:59:51
Type: dynamic, Flags: router rib
NBMA address: 100.3.36.3
10.1.3.5/32 via 10.1.3.5
Tunnel1 created 00:03:42, expire 01:56:17
Type: dynamic, Flags: router
NBMA address: 100.5.57.5
10.100.4.0/24 via 10.1.2.4
Tunnel1 created 00:02:55, expire 01:57:04
Type: dynamic, Flags: router unique local
NBMA address: 100.4.47.4
(no-socket)
10.100.5.0/24 via 10.1.3.5
Tunnel1 created 00:02:38, expire 01:57:21
Type: dynamic, Flags: router rib
NBMA address: 100.5.57.5
R4#sho ip route
Gateway of last resort is 100.4.47.7 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.4.47.7
10.0.0.0/8 is variably subnetted, 11 subnets, 3 masks
D 10.0.0.0/8 [90/28288000] via 10.1.2.2, 00:09:55, Tunnel1
D 10.1.1.0/24 [90/28160000] via 10.1.2.2, 00:09:57, Tunnel1
H 10.1.1.1/32 [250/1] via 10.1.1.1, 00:01:52
H 10.1.1.2/32 [250/1] via 10.1.2.2, 00:00:27, Tunnel1
C 10.1.2.0/24 is directly connected, Tunnel1
L 10.1.2.4/32 is directly connected, Tunnel1
H 10.1.3.3/32 [250/1] via 10.1.1.3, 00:00:14
D 10.100.2.0/24 [90/27008000] via 10.1.2.2, 00:09:57, Tunnel1
C 10.100.4.0/24 is directly connected, Loopback0
L 10.100.4.4/32 is directly connected, Loopback0
H 10.100.5.0/24 [250/1] via 10.1.3.5, 00:02:44
100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 100.4.47.0/24 is directly connected, Ethernet0/0
L 100.4.47.4/32 is directly connected, Ethernet0/0
R5#sho run int tun 1
Building configuration...
Current configuration : 263 bytes
interface Tunnel1
ip address 10.1.3.5 255.255.255.0
no ip redirects
ip nhrp map 10.1.3.3 100.3.37.3
ip nhrp map multicast 100.3.37.3
ip nhrp network-id 100
ip nhrp nhs 10.1.3.3
ip nhrp shortcut
tunnel source Ethernet0/0
tunnel mode gre multipoint
end
R5#sh ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel1 created 00:04:59, expire 01:55:00
Type: dynamic, Flags: router rib
NBMA address: 100.1.16.1
10.1.1.2/32 via 10.1.1.2
Tunnel1 created 00:04:53, expire 01:55:06
Type: dynamic, Flags: router
NBMA address: 100.2.26.2
10.1.1.3/32 via 10.1.3.3
Tunnel1 created 00:00:08, expire 01:59:51
Type: dynamic, Flags: router rib
NBMA address: 100.3.37.3
10.1.2.2/32 via 10.1.1.2
Tunnel1 created 00:04:41, expire 01:55:18
Type: dynamic, Flags: router rib
NBMA address: 100.2.26.2
10.1.2.4/32 via 10.1.2.4
Tunnel1 created 00:04:22, expire 01:55:37
Type: dynamic, Flags: router
NBMA address: 100.4.47.4
10.1.3.3/32 via 10.1.3.3
Tunnel1 created 00:10:34, never expire
Type: static, Flags: used
NBMA address: 100.3.37.3
10.1.3.5/32 via 10.1.3.5
Tunnel1 created 00:04:53, expire 01:55:37
Type: dynamic, Flags: router unique local
NBMA address: 100.5.57.5
(no-socket)
10.100.4.0/24 via 10.1.2.4
Tunnel1 created 00:03:35, expire 01:56:24
Type: dynamic, Flags: router rib
NBMA address: 100.4.47.4
10.100.5.0/24 via 10.1.3.5
Tunnel1 created 00:03:18, expire 01:56:41
Type: dynamic, Flags: router unique local
NBMA address: 100.5.57.5
(no-socket)
R5#sho ip route
Gateway of last resort is 100.5.57.7 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.5.57.7
10.0.0.0/8 is variably subnetted, 10 subnets, 3 masks
D 10.0.0.0/8 [90/28288000] via 10.1.3.3, 00:10:01, Tunnel1
D 10.1.1.0/24 [90/28160000] via 10.1.3.3, 00:10:03, Tunnel1
H 10.1.1.1/32 [250/1] via 10.1.1.1, 00:04:33
H 10.1.2.2/32 [250/1] via 10.1.1.2, 00:04:15
C 10.1.3.0/24 is directly connected, Tunnel1
L 10.1.3.5/32 is directly connected, Tunnel1
D 10.100.3.0/24 [90/27008000] via 10.1.3.3, 00:10:03, Tunnel1
H 10.100.4.0/24 [250/1] via 10.1.2.4, 00:03:09
C 10.100.5.0/24 is directly connected, Loopback0
L 10.100.5.5/32 is directly connected, Loopback0
100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 100.5.57.0/24 is directly connected, Ethernet0/0
L 100.5.57.5/32 is directly connected, Ethernet0/0
R6#sho ip route
100.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 100.1.16.0/24 is directly connected, Ethernet0/0
L 100.1.16.6/32 is directly connected, Ethernet0/0
C 100.2.26.0/24 is directly connected, Ethernet0/1
L 100.2.26.6/32 is directly connected, Ethernet0/1
C 100.3.36.0/24 is directly connected, Ethernet0/2
L 100.3.36.6/32 is directly connected, Ethernet0/2
R7#sho ip route
100.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
C 100.2.27.0/24 is directly connected, Ethernet0/0
L 100.2.27.7/32 is directly connected, Ethernet0/0
C 100.3.37.0/24 is directly connected, Ethernet0/1
L 100.3.37.7/32 is directly connected, Ethernet0/1
C 100.4.47.0/24 is directly connected, Ethernet0/2
L 100.4.47.7/32 is directly connected, Ethernet0/2
C 100.5.57.0/24 is directly connected, Ethernet0/3
L 100.5.57.7/32 is directly connected, Ethernet0/3
R4#traceroute 10.100.5.5 source 10.100.4.4 numeric
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.1.3.5 0 msec * 2 msec //分支站点一跳可达
R5#traceroute 10.100.4.4 source 10.100.5.5 numeric
Type escape sequence to abort.
Tracing the route to 10.100.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.2.4 1 msec * 1 msec
注意:
1、所有站点的认证信息要相同;
2、R1、R2、R3需要开启重定向;
3、R2、R3、R4、R5需要开启触发流量的功能;
4、在R1的隧道口下发汇总或默认路由。
转载于:https://blog.51cto.com/13596342/2094430