DMVPN 1hub-2cloud with BGP【済】


Env

Physical: 
 - gi0/0: 169.254.100.0/24
 - gi0/1: 169.254.200.0/24
Tunnel:
 - 1: 155.1.0.0/24
 - 2: 155.2.0.0/24
Loopback:
 - 150.1.x.x/32

Settings

Before

R1#sh ip bgp
BGP table version is 5, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *    0.0.0.0          155.2.0.5                              0 100 i
 *>                    155.1.0.5                              0 100 i
 *>   150.1.1.1/32     0.0.0.0                  0         32768 i

The best path of default-route is Tunnel1 because it has lower address than Tunnel2.

Local_Preference

config

R1(config)#route-map LOCAL_PREF permit 10
R1(config-route-map)#set local-pref 200
R1(config-route-map)#exit
R1(config)#router bgp 200
R1(config-router)#nei 155.2.0.5 route-map LOCAL_PREF in

R2(config)#route-map LOCAL_PREF permi 10
R2(config-route-map)#set local-pref 200
R2(config-route-map)#exit
R2(config)#router bgp 200
R2(config-router)#nei 155.2.0.5 route-map LOCAL_PREF in

result

R1#sh ip bgp | b Origin
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   0.0.0.0          155.2.0.5                     200      0 100 i
 *                     155.1.0.5                              0 100 i
 *>   150.1.1.1/32     0.0.0.0                  0         32768 i

R2#sh ip bgp | b Origin
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *    0.0.0.0          155.1.0.5                              0 100 i
 *>                    155.2.0.5                     200      0 100 i
 *>   150.1.2.2/32     0.0.0.0                  0         32768 i

The best path of default-routes which iosv-1 & 2 have changed Tunnel2.

failover

Before

R1#ping 150.1.2.2 repeat 1000
Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 150.1.2.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!....................
..................................................
%BGP-3-NOTIFICATION: sent to neighbor 155.2.0.5 4/0 (hold time expired) 0 bytes 
%BGP-5-NBR_RESET: Neighbor 155.2.0.5 reset (BGP Notification sent)
%BGP-5-ADJCHANGE: neighbor 155.2.0.5 Down BGP Notification sent
%BGP_SESSION-5-ADJCHANGE: neighbor 155.2.0.5 IPv4 Unicast topology base removed from session  BGP Notification sent.!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
Success rate is 92 percent (929/1000), round-trip min/avg/max = 2/8/23 ms

After

R1(config)#router bgp 200
R1(config-router)#nei 155.2.0.5 timers 6 20

R1#ping 150.1.2.2 repeat 1000
Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 150.1.2.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!........
%BGP-3-NOTIFICATION: sent to neighbor 155.2.0.5 4/0 (hold time expired) 0 bytes 
%BGP-5-NBR_RESET: Neighbor 155.2.0.5 reset (BGP Notification sent)
%BGP-5-ADJCHANGE: neighbor 155.2.0.5 Down BGP Notification sent
%BGP_SESSION-5-ADJCHANGE: neighbor 155.2.0.5 IPv4 Unicast topology base removed from session  BGP Notification sent.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
Success rate is 99 percent (991/1000), round-trip min/avg/max = 2/8/30 ms

Being able to make reconvergence time shorter.

Reference

CCIE Enterprise Infrastructure Foundation, 2nd Edition

この記事が気に入ったらサポートをしてみませんか?