TS---DMVPN 建立不通,第一步就是检查物理接口直接是否可以ping通,在检查其他的, 排错思路!!

来源:互联网 发布:美林数据股份有限公司 编辑:程序博客网 时间:2024/04/30 16:38
DMVPN 建立不通,第一步就是检查物理接口直接是否可以ping通,在检查其他的, 排错思路!!


R20# ping 192.0.2.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.0.2.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/25 ms
R20# ping 192.0.2.2 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.0.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R20# ping 192.0.2.2 so
R20# ping 192.0.2.2 source 192.0.2.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.0.2.2, timeout is 2 seconds:
Packet sent with a source address of 192.0.2.20 
.....
Success rate is 0 percent (0/5)
R20# ping 192.0.2.1                  
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R20# ping 192.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R20#
R20#show ip ro
R20#show ip route  
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.100.0.0/24 is directly connected, Tunnel0
L        10.100.0.20/32 is directly connected, Tunnel0
      192.0.2.0/32 is subnetted, 2 subnets
C        192.0.2.1 is directly connected, Dialer1
C        192.0.2.20 is directly connected, Dialer1
R20# 
R20#
R20#show ru
R20#show run
R20#show running-config | sec ip route
R20#
R20#
R20#show running-config | sec route   
R20#
R20#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R20(config)#
R20(config)#end
R20#show run
R20#show running-config 
*Sep 11 06:02:27.739: %SYS-5-CONFIG_I: Configured from console by console
R20#show running-config 

hostname R20

no ip domain lookup
ip cef


crypto isakmp policy 10
 encr aes
 authentication pre-share
 group 2
crypto isakmp key CCIE address 0.0.0.0        
!
!
crypto ipsec transform-set CCIEXFROM esp-aes 
 mode transport
!
crypto ipsec profile DMVPNPROFILE
 set transform-set CCIEXFROM 
!
!
interface Tunnel0
 ip address 10.100.0.20 255.255.255.0
 no ip redirects
 ip mtu 1400
 ip nhrp authentication CCIE
 ip nhrp map 10.100.0.1 192.0.2.2
 ip nhrp map multicast 192.0.2.2
 ip nhrp network-id 200
 ip nhrp holdtime 300
 ip nhrp nhs 10.100.0.1
 ip nhrp shortcut
 ip tcp adjust-mss 1360
 tunnel source Dialer1
 tunnel mode gre multipoint
 tunnel protection ipsec profile DMVPNPROFILE
!         
interface Ethernet0/0
 no ip address
 pppoe enable group global
 pppoe-client dial-pool-number 1

interface Dialer1
 ip address negotiated
 ip mtu 1492
 encapsulation ppp
 dialer pool 1
 ppp chap hostname Jamesons-R20
 ppp chap password 0 CCIE
!
ip forward-protocol nd

R20#  
R20#  conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R20(config)#
R20(config)#ip route 192.0.2.0 255.255.255.0 dialer 1   ----------------发现少配置了一个静态路由,导致物理接口之间不通,最后导致dmvpn也是建立不起来的,加上静态路由就好了。
R20(config)#end
R20#wr
Building configuration...
[OK]
R20#wr
Building configuration...
[OK]
R20#
*Sep 11 06:03:03.707: %SYS-5-CONFIG_I: Configured from console by console
R20#show ip ro
R20#show ip route  
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.100.0.0/24 is directly connected, Tunnel0
L        10.100.0.20/32 is directly connected, Tunnel0
      192.0.2.0/24 is variably subnetted, 3 subnets, 2 masks
S        192.0.2.0/24 is directly connected, Dialer1
C        192.0.2.1/32 is directly connected, Dialer1
C        192.0.2.20/32 is directly connected, Dialer1
R20# 
R20#
R20#tr
R20#traceroute 10.100.0.21 os
R20#traceroute 10.100.0.21 o 
R20#traceroute 10.100.0.21 so
R20#traceroute 10.100.0.21 source 10.100.0.20
Type escape sequence to abort.
Tracing the route to 10.100.0.21
VRF info: (vrf in name/id, vrf out name/id)
  1 10.100.0.1 6 msec 5 msec 3 msec
  2 10.100.0.21 40 msec *  6 msec
R20#
R20#
R20#traceroute 10.100.0.21 source 10.100.0.20
Type escape sequence to abort.
Tracing the route to 10.100.0.21
VRF info: (vrf in name/id, vrf out name/id)
  1 10.100.0.21 6 msec *  6 msec
R20#traceroute 10.100.0.21 source 10.100.0.20
Type escape sequence to abort.
Tracing the route to 10.100.0.21
VRF info: (vrf in name/id, vrf out name/id)
  1 10.100.0.21 6 msec *  6 msec
R20#
R20#
R20#
R20#



主题: DMVPN中“包治百病”的‘大招’---shutdown --no shutdown ---tunnel 接口
Dear Bruce  ---------进过 Bruce 实验验证,确实 有效, 很管用,[DMVPN大招]

DMVPN中“包治百病”的‘大招’---shutdown  --no shutdown ---tunnel 接口

在配置DMVPN的过程中,很可能出现配置完全正确,但是测试结果异常的现象。这个时候就可以使用如下的“”大招“”来解决问题。请注意,配置DMVPN出现不可预期的问题比较常见,但是一般都能使用下面的办法来解决,当然前提是配置没有问题。
步骤1: 关闭所有站点的隧道接口;
R17(config)#interface tunnel 0  ---------Hub
R17(config-if)#shutdown 

R18(config)#interface tunnel 0  ------Spoke1
R18(config-if)#shutdown 

R19(config)#interface tunnel 0 -----Spoke2
R19(config-if)#shutdown 

步骤2: 从中心站点开始打开各个站点的隧道接口;
    ----以中心站点到分支站点的顺序 逐次打开隧道接口;

R17(config)#interface tunnel 0  ---------Hub
R17(config-if)#no shutdown 

R18(config)#interface tunnel 0  ------Spoke1
R18(config-if)#no shutdown 

R19(config)#interface tunnel 0 -----Spoke2
R19(config-if)#no shutdown 

如果确实配置没有问题,那么这个时候DMVPN就应该能够正常工作了。



-----------------
R19#ping 10.18.19.1                       
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.18.19.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R19#                    ---------------------------------------------shutdown 接口和 no shutdown 接口配置之后的对比。
R19#ping 10.18.19.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.18.19.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/10 ms
R19#ping 10.18.19.18
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.18.19.18, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 17/19/22 ms
R19#ping 10.18.19.19
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.18.19.19, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 17/20/25 ms
R19#
R19#

0 0
原创粉丝点击