在第一个阶段DM×××可以用静态部署实现分支站点之间内网地址直接通信
主要配置如下:
R1#sho run int tun 0
Building configuration...
Current configuration : 258 bytes
interface Tunnel0
ip address 10.1.1.1 255.255.255.0
no ip redirects
ip nhrp authentication 123
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip ospf network broadcast
tunnel source Ethernet0/0
tunnel mode gre multipoint
tunnel key 100
end
R1#sho ip nhrp
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:55:56, expire 01:44:03
Type: dynamic, Flags: unique registered
NBMA address: 100.2.28.2
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:55:56, expire 01:44:03
Type: dynamic, Flags: unique registered
NBMA address: 100.3.38.3
R1#sho ip route
Gateway of last resort is 100.1.18.8 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.1.18.8
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
L 1.1.1.1/32 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
S 2.2.2.2 [1/0] via 10.1.1.2
3.0.0.0/32 is subnetted, 1 subnets
S 3.3.3.3 [1/0] via 10.1.1.3
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.1/32 is directly connected, Tunnel0
100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 100.1.18.0/24 is directly connected, Ethernet0/0
L 100.1.18.1/32 is directly connected, Ethernet0/0
R2#sho runn int tun0
Building configuration...
Current configuration : 336 bytes
interface Tunnel0
ip address 10.1.1.2 255.255.255.0
no ip redirects
ip nhrp authentication 123
ip nhrp map 10.1.1.1 100.1.18.1
ip nhrp map multicast 100.1.18.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip ospf network broadcast
tunnel source Ethernet0/0
tunnel mode gre multipoint
tunnel key 100
End
R2#sho ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel0 created 00:58:08, never expire
Type: static, Flags: used
NBMA address: 100.1.18.1
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:45:15, expire 01:14:44
Type: dynamic, Flags: router unique local
NBMA address: 100.2.28.2
(no-socket)
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:45:15, expire 01:14:44
Type: dynamic, Flags: router
NBMA address: 100.3.38.3
R2#sho ip route
Gateway of last resort is 100.2.28.8 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.2.28.8
1.0.0.0/32 is subnetted, 1 subnets
S 1.1.1.1 [1/0] via 10.1.1.1
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
L 2.2.2.2/32 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
S 3.3.3.3 [1/0] via 10.1.1.3
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.2/32 is directly connected, Tunnel0
100.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 100.2.28.0/24 is directly connected, Ethernet0/0
L 100.2.28.2/32 is directly connected, Ethernet0/0
R3#sho run int tun 0
Building configuration...
Current configuration : 302 bytes
interface Tunnel0
ip address 10.1.1.3 255.255.255.0
no ip redirects
ip nhrp authentication 123
ip nhrp map 10.1.1.1 100.1.18.1
ip nhrp network-id 100
ip nhrp nhs 10.1.1.1
ip ospf network broadcast
ip ospf priority 0
tunnel source Ethernet0/0
tunnel mode gre multipoint
tunnel key 100
End
R3#sho ip nhrp
10.1.1.1/32 via 10.1.1.1
Tunnel0 created 00:59:42, never expire
Type: static, Flags: used
NBMA address: 100.1.18.1
10.1.1.2/32 via 10.1.1.2
Tunnel0 created 00:46:49, expire 01:13:10
Type: dynamic, Flags: router
NBMA address: 100.2.28.2
10.1.1.3/32 via 10.1.1.3
Tunnel0 created 00:46:49, expire 01:13:10
Type: dynamic, Flags: router unique local
NBMA address: 100.3.38.3
(no-socket)
R3#sho ip route
Gateway of last resort is 100.3.38.8 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 100.3.38.8
1.0.0.0/32 is subnetted, 1 subnets
S 1.1.1.1 [1/0] via 10.1.1.1
2.0.0.0/32 is subnetted, 1 subnets
S 2.2.2.2 [1/0] via 10.1.1.2
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.3.3.0/24 is directly connected, Loopback0
L 3.3.3.3/32 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Tunnel0
L 10.1.1.3/32 is directly connected, Tunnel0
100.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 100.3.38.0/24 is directly connected, Ethernet0/0
L 100.3.38.3/32 is directly connected, Ethernet0/0
R8#sho ip route
100.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 100.1.18.0/24 is directly connected, Ethernet0/0
L 100.1.18.8/32 is directly connected, Ethernet0/0
C 100.2.28.0/24 is directly connected, Ethernet0/1
L 100.2.28.8/32 is directly connected, Ethernet0/1
C 100.3.38.0/24 is directly connected, Ethernet0/2
L 100.3.38.8/32 is directly connected, Ethernet0/2
R2#traceroute 3.3.3.3 source 2.2.2.2 numeric
Type escape sequence to abort.
Tracing the route to 3.3.3.3
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.1.3 6 msec * 2 msec //spoke(或分支)之间一跳可达
R3#traceroute 2.2.2.2 source 3.3.3.3 numeric
Type escape sequence to abort.
Tracing the route to 2.2.2.2
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.1.2 1 msec * 2 msec
注意:
1、client与client之间隧道地址一跳通信
2、client与client之间内网地址通过静态可以直接通信(不绕行server)
转载于:https://blog.51cto.com/13596342/2093561