User Tools

Site Tools


tech:network:cisco:bgp:bgp:bgp-getting-started:bgp-getting-started

BGP Getting Started

Introduction

C1841 ISR Physical Lab.

  • R1
en
conf t
!
int f0/1
ip address 3.0.0.1 255.255.255.0
no shut
exit
!
int f0/0
ip address 1.1.1.1 255.255.255.0
no shut
exit
!
router bgp 1
neighbor 3.0.0.2 remote-as 2
network 1.1.1.0 mask 255.255.255.0
exit
!
end
  • R2
en
conf t
!
int f0/1
ip address 3.0.0.2 255.255.255.0
no shut
exit
!
int f0/0
ip address 2.2.2.2 255.255.255.0
no shut
exit
!
router bgp 2
neighbor 3.0.0.1 remote-as 1
network 2.2.2.0 mask 255.255.255.0
exit
!
end
  • PC1(ASW2)

As a simple IP terminal.

en
conf t
!
no cdp run
no spanning-tree vlan 1-4094
spanning-tree portfast default
!
int vlan 1
ip addr 1.1.1.254 255.255.255.0
no shut
exit
!
ip default-gateway 1.1.1.1
!
end
  • PC2(ASW3)

As a simple IP terminal.

en
conf t
!
no cdp run
no spanning-tree vlan 1-4094
spanning-tree portfast default
!
int vlan 1
ip addr 2.2.2.254 255.255.255.0
no shut
exit
!
ip default-gateway 2.2.2.2
!
end

timers

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 1.1.1.1 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.1 255.255.255.0
no shut
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 2.2.2.2 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.2 255.255.255.0
no shut
exit
!
end
wr
  • PC1
ip 1.1.1.254 255.255.255.0 1.1.1.1
save
  • PC2
ip 2.2.2.254 255.255.255.0 2.2.2.2
save

BGP Configuration

timer 1

  • R1
en
conf t
!
router bgp 1
timers bgp 10 30
neighbor 3.0.0.2 remote-as 2
network 1.1.1.0 mask 255.255.255.0
exit
!
end
  • R2
en
conf t
!
router bgp 2
timers bgp 10 30
neighbor 3.0.0.1 remote-as 1
network 2.2.2.0 mask 255.255.255.0
exit
!
end

timer 2

  • R1
en
conf t
!
router bgp 1
neighbor 3.0.0.2 timers 10 30
neighbor 3.0.0.2 remote-as 2
network 1.1.1.0 mask 255.255.255.0
exit
!
end
  • R2
en
conf t
!
router bgp 2
neighbor 3.0.0.1 timers 10 30
neighbor 3.0.0.1 remote-as 1
network 2.2.2.0 mask 255.255.255.0
exit
!
end

loopback I/F iBGP

Using OSPF as IGP protocol.

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 192.168.0.1 255.255.255.0
no shut
exit
int gig0/1
ip address 192.168.1.1 255.255.255.0
no shut
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 192.168.2.2 255.255.255.0
no shut
exit
int gig0/1
ip address 192.168.2.2 255.255.255.0
no shut
exit
!
end
wr
  • PC1
ip 192.168.0.254 255.255.255.0 192.168.0.1
save
  • PC2
ip 192.168.2.254 255.255.255.0 192.168.2.2
save

BGP Configuration

  • R1
en
conf t
!
int Loopback 0
ip address 10.1.1.1 255.255.255.255
no shut
exjt
!
router ospf 1
network 10.1.1.1 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
exit
!
router bgp 20
neighbor 10.2.2.2 remote-as 20
neighbor 10.2.2.2 update-source loopback 0
network 192.168.0.0 mask 255.255.255.0
exit
!
end
  • R2
en
conf t
!
int Loopback 0
ip address 10.2.2.2 255.255.255.255
no shut
exjt
!
router ospf 1
network 10.2.2.2 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
exit
!
router bgp 20
neighbor 10.1.1.1 remote-as 20
neighbor 10.1.1.1 update-source loopback 0
network 192.168.2.0 mask 255.255.255.0
exit
!
end
R1(config-router)#
*Nov 13 22:45:11.862: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R1(config-router)#do sh ip ro ospf
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, p - overrides from PfR

Gateway of last resort is not set

      10.0.0.0/32 is subnetted, 2 subnets
O        10.2.2.2 [110/2] via 192.168.1.2, 00:00:32, GigabitEthernet0/1
R1(config-router)#do ping 10.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/4/5 ms
R1(config-router)#router
R1(config-router)#exit
R1(config)#router bgp 20
R1(config-router)#neigh
R1(config-router)#neighbor 10.2.2.2 remote-a
R1(config-router)#neighbor 10.2.2.2 remote-as 20
R1(config-router)#neigh
R1(config-router)#neighbor 10.2.2.2 up
R1(config-router)#neighbor 10.2.2.2 update-source loo
R1(config-router)#neighbor 10.2.2.2 update-source loopback 0
R1(config-router)#
*Nov 13 22:48:39.414: %BGP-5-ADJCHANGE: neighbor 10.2.2.2 Up
R1(config-router)#netwo
R1(config-router)#network 192.168.0.0 mas
R1(config-router)#network 192.168.0.0 mask 255.255.255.0
R1(config-router)#exit
R1(config)#exit
R1#
*Nov 13 22:50:34.110: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip bgp
BGP table version is 4, local router ID is 10.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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  192.168.0.0      0.0.0.0                  0         32768 i
 *>i 192.168.2.0      10.2.2.2                 0    100      0 i
R1#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/4/6 ms
R1#ping 192.168.2.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/254/1006 ms
R1#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      10.0.0.0/32 is subnetted, 2 subnets
C        10.1.1.1 is directly connected, Loopback0
O        10.2.2.2 [110/2] via 192.168.1.2, 00:06:18, GigabitEthernet0/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/24 is directly connected, GigabitEthernet0/0
L        192.168.0.1/32 is directly connected, GigabitEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/1
L        192.168.1.1/32 is directly connected, GigabitEthernet0/1
B     192.168.2.0/24 [200/0] via 10.2.2.2, 00:01:02
R1#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         192.168.0.1     YES manual up                    up
GigabitEthernet0/1         192.168.1.1     YES manual up                    up
GigabitEthernet0/2         unassigned      YES NVRAM  administratively down down
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
Loopback0                  10.1.1.1        YES manual up                    up
R1#sh ip bgp neighbors
BGP neighbor is 10.2.2.2,  remote AS 20, internal link
  BGP version 4, remote router ID 10.2.2.2
  BGP state = Established, up for 00:04:28
  Last read 00:00:44, last write 00:00:16, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          2
    Keepalives:             6          6
R2(config-router)#exit
R2(config)#router bgp 20
R2(config-router)#router ospf 1
R2(config-router)#network 10.2.2.2 0.0.0.0 area 0
R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
R2(config-router)#exit
R2(config)#router bgp 20
R2(config-router)#do clear ip ospf process
Reset ALL OSPF processes? [no]:
R2(config-router)#do clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R2(config-router)#
*Nov 13 22:44:31.379: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on GigabitEthernet0/1 from 2WAY to DOWN, Neighbor Down: Interface down or detached
R2(config-router)#
*Nov 13 22:45:11.410: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R2(config-router)#do sh ip ro ospf
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, p - overrides from PfR

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O        10.1.1.1/32 [110/2] via 192.168.1.1, 00:00:40, GigabitEthernet0/1
R2(config-router)#exit
R2(config)#route
R2(config)#router
R2(config)#router bgp 20
R2(config-router)#neigh
R2(config-router)#neighbor remo
R2(config-router)#neighbor 10.1.1.1 remo
R2(config-router)#neighbor 10.1.1.1 remote-a
R2(config-router)#neighbor 10.1.1.1 remote-as 20
R2(config-router)#nei
R2(config-router)#neighbor 10.2.2.2 upda
R2(config-router)#neighbor 10.2.2.2 update-source loo
R2(config-router)#neighbor 10.2.2.2 update-source loopback 0
% Specify remote-as or peer-group commands first
R2(config-router)#neighbor 10.2.2.2 update-source loopback 0
*Nov 13 22:48:38.950: %BGP-5-ADJCHANGE: neighbor 10.1.1.1 Up
R2(config-router)#neighbor 10.2.2.2 update-source loopback 0
% Specify remote-as or peer-group commands first
R2(config-router)#neighbor 10.1.1.1 update-source loopback 0
R2(config-router)#netw
R2(config-router)#network 192.168.2.0 mas
R2(config-router)#network 192.168.2.0 mask 255.255.255.0
R2(config-router)#exit
R2(config)#exit
R2#
*Nov 13 22:50:36.640: %SYS-5-CONFIG_I: Configured from console by console
R2#sh ip bgp
BGP table version is 4, local router ID is 10.2.2.2
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>i 192.168.0.0      10.1.1.1                 0    100      0 i
 *>  192.168.2.0      0.0.0.0                  0         32768 i
R2#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O        10.1.1.1/32 [110/2] via 192.168.1.1, 00:06:27, GigabitEthernet0/1
C        10.2.2.0/24 is directly connected, Loopback0
L        10.2.2.2/32 is directly connected, Loopback0
B     192.168.0.0/24 [200/0] via 10.1.1.1, 00:01:31
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/1
L        192.168.1.2/32 is directly connected, GigabitEthernet0/1
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/24 is directly connected, GigabitEthernet0/0
L        192.168.2.2/32 is directly connected, GigabitEthernet0/0
R2#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         192.168.2.2     YES manual up                    up
GigabitEthernet0/1         192.168.1.2     YES manual up                    up
GigabitEthernet0/2         unassigned      YES NVRAM  administratively down down
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
Loopback0                  10.2.2.2        YES manual up                    up
R2#sh ip bgp neighbors
BGP neighbor is 10.1.1.1,  remote AS 20, internal link
  BGP version 4, remote router ID 10.1.1.1
  BGP state = Established, up for 00:04:34
  Last read 00:00:22, last write 00:00:50, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          2
    Keepalives:             6          6

loopback I/F eBGP

TTL must be larger than 1.

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 1.1.0.1 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.1 255.255.255.0
no shut
exit
int gig0/2
ip address 3.0.1.1 255.255.255.0
no shut
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 2.2.0.2 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.2 255.255.255.0
no shut
exit
int gig0/2
ip address 3.0.1.2 255.255.255.0
no shut
exit
!
end
wr
  • PC1
ip 1.1.0.254 255.255.255.0 1.1.0.1
save
  • PC2
ip 2.2.0.254 255.255.255.0 2.2.0.2
save

BGP Configuration

  • R1
en
conf t
!
int Loopback 0
ip address 1.1.1.1 255.255.255.255
no shut
exjt
!
ip route 2.2.2.2 255.255.255.255 3.0.0.2
ip route 2.2.2.2 255.255.255.255 3.0.1.2
!
router bgp 1
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 update-source loopback 0
neighbor 2.2.2.2 ebgp-multihop 2
network 1.1.0.0 mask 255.255.255.0
exit
!
end
  • R2
en
conf t
!
int Loopback 0
ip address 2.2.2.2 255.255.255.255
no shut
exjt
!
ip route 1.1.1.1 255.255.255.255 3.0.0.1
ip route 1.1.1.1 255.255.255.255 3.0.1.1
!
router bgp 2
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source loopback 0
neighbor 1.1.1.1 ebgp-multihop 2
network 2.2.0.0 mask 255.255.255.0
exit
!
end

Verifying basic IP Configuration and connectivity

PC-1> ping 1.1.0.1
84 bytes from 1.1.0.1 icmp_seq=1 ttl=255 time=7.978 ms
84 bytes from 1.1.0.1 icmp_seq=2 ttl=255 time=2.317 ms
84 bytes from 1.1.0.1 icmp_seq=3 ttl=255 time=2.435 ms
84 bytes from 1.1.0.1 icmp_seq=4 ttl=255 time=2.209 ms
84 bytes from 1.1.0.1 icmp_seq=5 ttl=255 time=3.597 ms
PC-2> ping 2.2.0.2
84 bytes from 2.2.0.2 icmp_seq=1 ttl=255 time=8.985 ms
84 bytes from 2.2.0.2 icmp_seq=2 ttl=255 time=2.350 ms
84 bytes from 2.2.0.2 icmp_seq=3 ttl=255 time=2.185 ms
84 bytes from 2.2.0.2 icmp_seq=4 ttl=255 time=2.357 ms
84 bytes from 2.2.0.2 icmp_seq=5 ttl=255 time=2.216 ms
R1#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         1.1.0.1         YES NVRAM  up                    up
GigabitEthernet0/1         3.0.0.1         YES NVRAM  up                    up
GigabitEthernet0/2         3.0.1.1         YES NVRAM  up                    up
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
R1#ping 3.0.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/4/5 ms
R1#ping 3.0.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/3/4 ms
R2#sh ip int brie
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         2.2.0.2         YES NVRAM  up                    up
GigabitEthernet0/1         3.0.0.2         YES NVRAM  up                    up
GigabitEthernet0/2         3.0.1.2         YES NVRAM  up                    up
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int Loo
R1(config)#int Loopback 0
R1(config-if)#
*Nov 14 23:06:20.359: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R1(config-if)#ip addre
R1(config-if)#ip address 2.2.2.2 255.255.255.255
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#exit
R1(config)#ip route 2.2.2.2 255.255.255.255 3.0.0.1
%Invalid next hop address (it's this router)
R1(config)#ip route 2.2.2.2 255.255.255.255 3.0.0.2
R1(config)#ip route 2.2.2.2 255.255.255.255 3.0.1.2
R1(config)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        1.1.0.0/24 is directly connected, GigabitEthernet0/0
L        1.1.0.1/32 is directly connected, GigabitEthernet0/0
C        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 3.0.1.2
                 [1/0] via 3.0.0.2
      3.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
C        3.0.1.0/24 is directly connected, GigabitEthernet0/2
L        3.0.1.1/32 is directly connected, GigabitEthernet0/2
R1(config)#do sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         1.1.0.1         YES NVRAM  up                    up
GigabitEthernet0/1         3.0.0.1         YES NVRAM  up                    up
GigabitEthernet0/2         3.0.1.1         YES NVRAM  up                    up
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
Loopback0                  1.1.1.1         YES manual up                    up
R1(config)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/5 ms
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#int Lo 0
R2(config-if)#
*Nov 14 23:06:23.301: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R2(config-if)#ip address 2.2.2.2 255.255.255.255
R2(config-if)#exit
R2(config)#ip route 1.1.1.1 255.255.255.255 3.0.0.1
R2(config)#ip route 1.1.1.1 255.255.255.255 3.0.1.1
R2(config)#do sh 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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
S        1.1.1.1 [1/0] via 3.0.1.1
                 [1/0] via 3.0.0.1
      2.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        2.2.0.0/24 is directly connected, GigabitEthernet0/0
L        2.2.0.2/32 is directly connected, GigabitEthernet0/0
C        2.2.2.2/32 is directly connected, Loopback0
      3.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.2/32 is directly connected, GigabitEthernet0/1
C        3.0.1.0/24 is directly connected, GigabitEthernet0/2
L        3.0.1.2/32 is directly connected, GigabitEthernet0/2
R2(config)#do sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         2.2.0.2         YES NVRAM  up                    up
GigabitEthernet0/1         3.0.0.2         YES NVRAM  up                    up
GigabitEthernet0/2         3.0.1.2         YES NVRAM  up                    up
GigabitEthernet0/3         unassigned      YES NVRAM  administratively down down
Loopback0                  2.2.2.2         YES manual up                    up
R2(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/5 ms

Verification of eBGP Loopback configuration

R1(config)#router bgp 1
R1(config-router)#neighbo
R1(config-router)#neighbor 2.2.2.2 remo
R1(config-router)#neighbor 2.2.2.2 remote
R1(config-router)#neighbor 2.2.2.2 remote-as 2
R1(config-router)#neigh
R1(config-router)#neighbor 2.2.2.2 remo
R1(config-router)#neighbor 2.2.2.2 upda
R1(config-router)#neighbor 2.2.2.2 update-source lo
R1(config-router)#neighbor 2.2.2.2 update-source loo
R1(config-router)#neighbor 2.2.2.2 update-source loopback 0
R1(config-router)#do debug bgp events
                               ^
% Invalid input detected at '^' marker.

R1(config-router)#do debug bgp ?
% Unrecognized command
R1(config-router)#do debug ip bgp events
BGP events debugging is on
R1(config-router)#
*Nov 14 23:13:40.471: BGP: Regular scanner timer event
*Nov 14 23:13:40.472: BGP: Performing BGP general scanning
*Nov 14 23:13:40.472: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:40.473: BGP(0): Future scanner version: 3, current scanner version: 2
*Nov 14 23:13:40.473: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:40.474: BGP(6): Future scanner version: 3, current scanner version: 2
*Nov 14 23:13:40.474: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:40.474: BGP(10): Future scanner version: 3, current scanner version: 2
R1(config-router)#
*Nov 14 23:13:40.475: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:40.475: BGP(15): Future scanner version: 3, current scanner version: 2
R1(config-router)#
*Nov 14 23:14:40.477: BGP: Regular scanner timer event
*Nov 14 23:14:40.477: BGP: Performing BGP general scanning
*Nov 14 23:14:40.478: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:40.478: BGP(0): Future scanner version: 4, current scanner version: 3
*Nov 14 23:14:40.479: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:40.479: BGP(6): Future scanner version: 4, current scanner version: 3
*Nov 14 23:14:40.480: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:40.480: BGP(10): Future scanner version: 4, current scanner version: 3
R1(config-router)#
*Nov 14 23:14:40.480: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:40.481: BGP(15): Future scanner version: 4, current scanner version: 3
R1(config-router)#u all
                  ^
% Invalid input detected at '^' marker.

R1(config-router)#do u all
All possible debugging has been turned off
R1(config-router)#do ip bgp neighbor
                        ^
% Invalid input detected at '^' marker.

R1(config-router)#do sh ip bgp neigh
BGP neighbor is 2.2.2.2,  remote AS 2, external link
  BGP version 4, remote router ID 0.0.0.0
  BGP state = Idle
  Neighbor sessions:
    0 active, is not multisession capable (disabled)
    Stateful switchover support enabled: NO
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  BGP table version 1, neighbor version 1/0
  Output queue size : 0
  Index 0, Advertise bit 0
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               0          0
    Prefixes Total:                 0          0
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          0
    Used as multipath:            n/a          0

R1(config-router)#do sh ip bgp neigh
BGP neighbor is 2.2.2.2,  remote AS 2, external link
  BGP version 4, remote router ID 0.0.0.0
  BGP state = Idle
  Neighbor sessions:
    0 active, is not multisession capable (disabled)
    Stateful switchover support enabled: NO
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  BGP table version 1, neighbor version 1/0
  Output queue size : 0
  Index 0, Advertise bit 0
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               0          0
    Prefixes Total:                 0          0
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          0
    Used as multipath:            n/a          0

                                   Outbound    Inbound
  Local Policy Denied Prefixes:    --------    -------
    Total:                                0          0
  Number of NLRIs in the update sent: max 0, min 0
  Last detected as dynamic slow peer: never
  Dynamic slow peer recovered: never
  Refresh Epoch: 1
  Last Sent Refresh Start-of-rib: never
  Last Sent Refresh End-of-rib: never
  Last Received Refresh Start-of-rib: never
  Last Received Refresh End-of-rib: never
                                       Sent       Rcvd
        Refresh activity:              ----       ----
          Refresh Start-of-RIB          0          0
          Refresh End-of-RIB            0          0

  Address tracking is enabled, the RIB does have a route to 2.2.2.2
  Connections established 0; dropped 0
  Last reset never
  External BGP neighbor not directly connected.
  External BGP neighbor configured for connected checks (single-hop no-disable-connected-check)
  Interface associated: (none) (peering address NOT in same link)
  Transport(tcp) path-mtu-discovery is enabled
  Graceful-Restart is disabled
  SSO is disabled
  No active TCP connection

R1(config-router)#neighbor 2.2.2.2 ebgp-multihop 2
R1(config-router)#
*Nov 14 23:18:01.148: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Up
R1(config-router)#


R1#sh ip bgp neigh
BGP neighbor is 2.2.2.2,  remote AS 2, external link
  BGP version 4, remote router ID 2.2.2.2
  BGP state = Established, up for 00:02:02
  Last read 00:00:16, last write 00:00:46, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          2
    Keepalives:             3          3

R1#sh ip ro bgp
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, p - overrides from PfR

Gateway of last resort is not set

      2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        2.2.0.0/24 [20/0] via 2.2.2.2, 00:01:35
R1#ping 2.2.0.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.0.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/253/1001 ms
R2(config)#router bgp 2
R2(config-router)#neigh
R2(config-router)#neighbor 1.1.1.1 remo
R2(config-router)#neighbor 1.1.1.1 remote
R2(config-router)#neighbor 1.1.1.1 remote-as 1
R2(config-router)#neigh
R2(config-router)#neighbor 1.1.1.1 upda
R2(config-router)#neighbor 1.1.1.1 update-source loo
R2(config-router)#neighbor 1.1.1.1 update-source loopback 0
R2(config-router)#do debug ip bgp events
BGP events debugging is on
R2(config-router)#
*Nov 14 23:13:45.785: BGP: Regular scanner timer event
*Nov 14 23:13:45.786: BGP: Performing BGP general scanning
*Nov 14 23:13:45.786: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:45.787: BGP(0): Future scanner version: 3, current scanner version: 2
*Nov 14 23:13:45.787: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:45.788: BGP(6): Future scanner version: 3, current scanner version: 2
*Nov 14 23:13:45.788: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:45.789: BGP(10): Future scanner version: 3, current scanner version: 2
R2(config-router)#
*Nov 14 23:13:45.789: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:13:45.790: BGP(15): Future scanner version: 3, current scanner version: 2
R2(config-router)#
*Nov 14 23:14:45.791: BGP: Regular scanner timer event
*Nov 14 23:14:45.792: BGP: Performing BGP general scanning
*Nov 14 23:14:45.792: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:45.793: BGP(0): Future scanner version: 4, current scanner version: 3
*Nov 14 23:14:45.793: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:45.794: BGP(6): Future scanner version: 4, current scanner version: 3
*Nov 14 23:14:45.794: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:45.795: BGP(10): Future scanner version: 4, current scanner version: 3
R2(config-router)#
*Nov 14 23:14:45.795: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 14 23:14:45.796: BGP(15): Future scanner version: 4, current scanner version: 3
R2(config-router)#do u all
All possible debugging has been turned off
R2(config-router)#do sh ip bgp neighb
BGP neighbor is 1.1.1.1,  remote AS 1, external link
  BGP version 4, remote router ID 0.0.0.0
  BGP state = Idle
  Neighbor sessions:
    0 active, is not multisession capable (disabled)
    Stateful switchover support enabled: NO
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  BGP table version 1, neighbor version 1/0
  Output queue size : 0
  Index 0, Advertise bit 0
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               0          0
    Prefixes Total:                 0          0
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          0
    Used as multipath:            n/a          0

R2(config-router)#do sh ip bgp neighb
BGP neighbor is 1.1.1.1,  remote AS 1, external link
  BGP version 4, remote router ID 0.0.0.0
  BGP state = Idle
  Neighbor sessions:
    0 active, is not multisession capable (disabled)
    Stateful switchover support enabled: NO
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  BGP table version 1, neighbor version 1/0
  Output queue size : 0
  Index 0, Advertise bit 0
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               0          0
    Prefixes Total:                 0          0
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          0
    Used as multipath:            n/a          0

                                   Outbound    Inbound
  Local Policy Denied Prefixes:    --------    -------
    Total:                                0          0
  Number of NLRIs in the update sent: max 0, min 0
  Last detected as dynamic slow peer: never
  Dynamic slow peer recovered: never
  Refresh Epoch: 1
  Last Sent Refresh Start-of-rib: never
  Last Sent Refresh End-of-rib: never
  Last Received Refresh Start-of-rib: never
  Last Received Refresh End-of-rib: never
                                       Sent       Rcvd
        Refresh activity:              ----       ----
          Refresh Start-of-RIB          0          0
          Refresh End-of-RIB            0          0

  Address tracking is enabled, the RIB does have a route to 1.1.1.1
  Connections established 0; dropped 0
  Last reset never
  External BGP neighbor not directly connected.
  External BGP neighbor configured for connected checks (single-hop no-disable-connected-check)
  Interface associated: (none) (peering address NOT in same link)
  Transport(tcp) path-mtu-discovery is enabled
  Graceful-Restart is disabled
  SSO is disabled
  No active TCP connection

R2(config-router)#neighbor 1.1.1.1 ebgp-multihop 2
R2(config-router)#
*Nov 14 23:18:00.695: %BGP-5-ADJCHANGE: neighbor 1.1.1.1 Up
R2(config-router)#



R2#sh ip bgp neigh
BGP neighbor is 1.1.1.1,  remote AS 1, external link
  BGP version 4, remote router ID 1.1.1.1
  BGP state = Established, up for 00:02:08
  Last read 00:00:01, last write 00:00:23, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          2
    Keepalives:             3          4

R2#sh ip ro bgp
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        1.1.0.0/24 [20/0] via 1.1.1.1, 00:02:08
R2#ping 1.1.0.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.0.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/254/1005 ms
PC-1> ping 2.2.0.254
84 bytes from 2.2.0.254 icmp_seq=1 ttl=62 time=3.154 ms
84 bytes from 2.2.0.254 icmp_seq=2 ttl=62 time=3.240 ms
84 bytes from 2.2.0.254 icmp_seq=3 ttl=62 time=3.322 ms
84 bytes from 2.2.0.254 icmp_seq=4 ttl=62 time=3.855 ms
84 bytes from 2.2.0.254 icmp_seq=5 ttl=62 time=3.001 ms
PC-2> ping 1.1.0.254
84 bytes from 1.1.0.254 icmp_seq=1 ttl=62 time=3.297 ms
84 bytes from 1.1.0.254 icmp_seq=2 ttl=62 time=2.120 ms
84 bytes from 1.1.0.254 icmp_seq=3 ttl=62 time=3.060 ms
84 bytes from 1.1.0.254 icmp_seq=4 ttl=62 time=3.039 ms
84 bytes from 1.1.0.254 icmp_seq=5 ttl=62 time=3.322 ms

ping successful.

BGP reset

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 1.1.1.1 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.1 255.255.255.0
no shut
exit
!
router bgp 1
timers bgp 10 30
neighbor 3.0.0.2 remote-as 2
network 1.1.1.0 mask 255.255.255.0
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 2.2.2.2 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.2 255.255.255.0
no shut
exit
!
router bgp 2
timers bgp 10 30
neighbor 3.0.0.1 remote-as 1
network 2.2.2.0 mask 255.255.255.0
exit
!
end
wr
  • PC1
ip 1.1.1.254 255.255.255.0 1.1.1.1
save
  • PC2
ip 2.2.2.254 255.255.255.0 2.2.2.2
save

Hard Reset

clear ip bgp 3.0.0.2
clear ip bgp *
R1#clear ip bgp 3.0.0.2
R1#
*Nov 15 22:39:42.585: %BGP-3-NOTIFICATION: sent to neighbor 3.0.0.2 6/4 (Administrative Reset) 0 bytes
R1#
*Nov 15 22:39:42.592: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Down User reset
*Nov 15 22:39:42.592: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.2 IPv4 Unicast topology base removed from session  User reset
*Nov 15 22:39:43.349: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Up
R1#clear ip bgp *
R1#
*Nov 15 22:40:00.838: %BGP-3-NOTIFICATION_ALL: sent to all sessions 6/4 (Administrative Reset)
R1#
*Nov 15 22:40:00.848: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Down User reset
*Nov 15 22:40:00.849: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.2 IPv4 Unicast topology base removed from session  User reset
R1#
*Nov 15 22:40:08.961: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Up
R2#
*Nov 15 22:39:42.577: %BGP-3-NOTIFICATION: received from neighbor 3.0.0.1 6/4 (Administrative Reset) 0 bytes
R2#
*Nov 15 22:39:42.577: %BGP-5-NBR_RESET: Neighbor 3.0.0.1 reset (BGP Notification received)
*Nov 15 22:39:42.580: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Down BGP Notification received
*Nov 15 22:39:42.580: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.1 IPv4 Unicast topology base removed from session  BGP Notification received
*Nov 15 22:39:43.338: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Up
R2#
*Nov 15 22:40:00.832: %BGP-3-NOTIFICATION: received from neighbor 3.0.0.1 6/4 (Administrative Reset) 0 bytes
R2#
*Nov 15 22:40:00.833: %BGP-5-NBR_RESET: Neighbor 3.0.0.1 reset (BGP Notification received)
*Nov 15 22:40:00.838: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Down BGP Notification received
*Nov 15 22:40:00.838: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.1 IPv4 Unicast topology base removed from session  BGP Notification received
R2#
*Nov 15 22:40:08.951: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Up
R2#

Soft Reset

clear ip bgp 3.0.0.2 soft out
clear ip bgp * soft out
R1#clear ip bgp * ?
  all       All address families
  in        Soft reconfig inbound updates
  ipv4      Address family
  ipv6      Address family
  l2vpn     Address family
  nsap      Address family
  out       Soft reconfig outbound updates
  rtfilter  Address family
  slow      Forcefully clear slow-peer status and move it to original update
            group
  soft      Soft reconfig inbound and outbound updates
  topology  Routing topology instance
  vpnv4     Address family
  vpnv6     Address family
  <cr>

R1#clear ip bgp 3.0.0.2 ?
  all              All address families
  cease            send cease notification to neighbor
  flap-statistics  Clear flap statistic
  in               Soft reconfig inbound updates
  ipv4             Address family
  ipv6             Address family
  l2vpn            Address family
  nsap             Address family
  out              Soft reconfig outbound updates
  rtfilter         Address family
  slow             Forcefully clear slow-peer status and move it to original
                   update group
  soft             Soft reconfig inbound and outbound updates
  topology         Routing topology instance
  vpnv4            Address family
  vpnv6            Address family
  <cr>

R1#clear ip bgp 3.0.0.2 soft
R1#clear ip bgp 3.0.0.2 soft ?
  in    Soft reconfig inbound updates
  out   Soft reconfig outbound updates
  slow  Forcefully clear slow-peer status and move it to original update group
  <cr>

R1#clear ip bgp 3.0.0.2 soft o
R1#clear ip bgp 3.0.0.2 soft out
R1#debug ip bgp events
BGP events debugging is on
R1#clear ip bgp 3.0.0.2 soft out
R1#clear ip ro *
R1#
*Nov 15 22:46:42.057: BGP: bgp_rwatch_notify: BGP_RWATCH_APPL_NHOP
*Nov 15 22:46:42.057: EvD: charge penalty 500, new accum. penalty 500, flap count 2
*Nov 15 22:46:42.058: BGP: bgp_rwatch_notify: BGP_RWATCH_APPL_NBR
*Nov 15 22:46:42.058: BGP: nbr global 3.0.0.2 bgp_process_bnbr_notification not reachable
*Nov 15 22:46:42.069: BGP: topo global:IPv4 Unicast:base Schedule update
*Nov 15 22:46:42.081: BGP: bgp_rwatch_notify: BGP_RWATCH_APPL_NHOP
*Nov 15 22:46:42.081: EvD: charge penalty 500, new accum. penalty 1000, flap count 3
*Nov 15 22:46:42.082: BGP: bgp_rwatch_notify: BGP_RWATCH_APPL_NBR
R1#
*Nov 15 22:46:42.082: BGP: nbr global 3.0.0.2 bgp_process_bnbr_notification reachable
R1#clear ip bgp 23
*Nov 15 22:47:05.632: BGP: Regular scanner timer event
*Nov 15 22:47:05.633: BGP: Performing BGP general scanning
*Nov 15 22:47:05.633: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:05.634: BGP(0): Future scanner version: 8, current scanner version: 7
*Nov 15 22:47:05.634: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:05.635: BGP(6): Future scanner version: 8, current scanner version: 7
*Nov 15 22:47:05.635: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:05.636: BGP(10): Future scanner version: 8, current scanner version: 7
R1#clear ip bgp
*Nov 15 22:47:05.636: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:05.637: BGP(15): Future scanner version: 8, current scanner version: 7
R1#clear ip bgp * soft out
R1#
R1#
R1#
R2#debug ip bgp events
BGP events debugging is on
R2#
*Nov 15 22:47:11.475: BGP: Regular scanner timer event
*Nov 15 22:47:11.476: BGP: Performing BGP general scanning
*Nov 15 22:47:11.476: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:11.477: BGP(0): Future scanner version: 9, current scanner version: 8
*Nov 15 22:47:11.477: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:11.478: BGP(6): Future scanner version: 9, current scanner version: 8
*Nov 15 22:47:11.478: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:11.478: BGP(10): Future scanner version: 9, current scanner version: 8
R2#
*Nov 15 22:47:11.479: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:47:11.479: BGP(15): Future scanner version: 9, current scanner version: 8
conf t
router bgp 1
neighbor 3.0.0.2 soft-reconfiguration inbound
exit
end

clear ip bgp 3.0.0.2 soft in
clear ip bgp * soft in
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router
R1(config)#router bg
R1(config)#router bgp 1
R1(config-router)#neigh
R1(config-router)#neighbor 3.0.0.2 soft
R1(config-router)#neighbor 3.0.0.2 soft-reconfiguration inb
R1(config-router)#neighbor 3.0.0.2 soft-reconfiguration inbound
R1(config-router)#exit
R1(config)#end
R1#
*Nov 15 22:51:30.726: %SYS-5-CONFIG_I: Configured from console by console
R1#clear
R1#clear ip bgp 3.0.0.2 soft in
R1#clear ip bgp * soft in
R1#debu
R1#debug ip bgp event
R1#debug ip bgp events
BGP events debugging is on
R1#
*Nov 15 22:52:49.238: BGP: nbr_topo global 3.0.0.2 IPv4 Unicast:base (0xCA712D8:1) Refresh timer expired, no pending refresh
R1#clear
R1#clear ip bgp
R1#clear ip bgp 3.0.0.2 soft in
R1#
*Nov 15 22:53:05.657: BGP: Regular scanner timer event
*Nov 15 22:53:05.658: BGP: Performing BGP general scanning
*Nov 15 22:53:05.658: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:05.659: BGP(0): Future scanner version: 14, current scanner version: 13
*Nov 15 22:53:05.659: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:05.660: BGP(6): Future scanner version: 14, current scanner version: 13
*Nov 15 22:53:05.660: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:05.661: BGP(10): Future scanner version: 14, current scanner version: 13
R1#
*Nov 15 22:53:05.661: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:05.662: BGP(15): Future scanner version: 14, current scanner version: 13
R1#
*Nov 15 22:53:43.862: BGP: nbr_topo global 3.0.0.2 IPv4 Unicast:base (0xCA712D8:1) Start outbound soft reconfig
*Nov 15 22:53:43.863: BGP: 3.0.0.2 received Refresh
*Nov 15 22:53:43.864: BGP: 3.0.0.2 start outbound soft reconfig for afi/safi: 1/1
R1#clear ip bgp 3.0.0.2 soft in
R1#clear ip bgp * soft in
R1#
*Nov 15 22:54:05.663: BGP: Regular scanner timer event
*Nov 15 22:54:05.663: BGP: Performing BGP general scanning
*Nov 15 22:54:05.664: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:05.664: BGP(0): Future scanner version: 15, current scanner version: 14
*Nov 15 22:54:05.664: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:05.665: BGP(6): Future scanner version: 15, current scanner version: 14
*Nov 15 22:54:05.665: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:05.666: BGP(10): Future scanner version: 15, current scanner version: 14
R1#
*Nov 15 22:54:05.666: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:05.667: BGP(15): Future scanner version: 15, current scanner version: 14
R1#
*Nov 15 22:54:14.245: BGP: nbr_topo global 3.0.0.2 IPv4 Unicast:base (0xCA712D8:1) Refresh timer expired, no pending refresh
R2#clear ip bgp * soft in
R2#debu
R2#debug ip bgp even
R2#debug ip bgp events
BGP events debugging is on
R2#
*Nov 15 22:53:11.501: BGP: Regular scanner timer event
*Nov 15 22:53:11.502: BGP: Performing BGP general scanning
*Nov 15 22:53:11.502: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:11.503: BGP(0): Future scanner version: 15, current scanner version: 14
*Nov 15 22:53:11.503: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:11.503: BGP(6): Future scanner version: 15, current scanner version: 14
*Nov 15 22:53:11.504: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:11.504: BGP(10): Future scanner version: 15, current scanner version: 14
R2#
*Nov 15 22:53:11.505: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:53:11.505: BGP(15): Future scanner version: 15, current scanner version: 14
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router bgp 2
R2(config-router)#neigh
R2(config-router)#neighbor 3.0.0.1 soft-reconfi
R2(config-router)#neighbor 3.0.0.1 soft-reconfiguration in
R2(config-router)#neighbor 3.0.0.1 soft-reconfiguration inbound
R2(config-router)#
*Nov 15 22:54:11.507: BGP: Regular scanner timer event
*Nov 15 22:54:11.508: BGP: Performing BGP general scanning
*Nov 15 22:54:11.508: BGP: tbl IPv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:11.509: BGP(0): Future scanner version: 16, current scanner version: 15
*Nov 15 22:54:11.509: BGP: tbl IPv4 Multicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:11.510: BGP(6): Future scanner version: 16, current scanner version: 15
*Nov 15 22:54:11.510: BGP: tbl L2VPN E-VPN:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:11.511: BGP(10): Future scanner version: 16, current scanner version: 15
R2(config-router)#
*Nov 15 22:54:11.511: BGP: tbl MVPNv4 Unicast:base Performing BGP Nexthop scanning for general scan
*Nov 15 22:54:11.512: BGP(15): Future scanner version: 16, current scanner version: 15
R2(config-router)#

Hmmm????

MD5 Authentication

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#neigh
R1(config)#router bgp 1
R1(config-router)#neigh
R1(config-router)#neighbor 3.0.0.2 passwo
R1(config-router)#neighbor 3.0.0.2 password ?
  <0-7>  Encryption type (0 to disable encryption, 7 for proprietary)
  LINE   The password

R1(config-router)#neighbor 3.0.0.2 password CCIE
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Nov 15 23:21:02.379: %BGP-3-NOTIFICATION_ALL: sent to all sessions 6/4 (Administrative Reset)
R1(config-router)#
*Nov 15 23:21:02.404: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Down User reset
*Nov 15 23:21:02.404: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.2 IPv4 Unicast topology base removed from session  User reset
R1(config-router)#
*Nov 15 23:21:10.609: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(25710) tableid - 0
R1(config-router)#
*Nov 15 23:21:12.608: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(25710) tableid - 0
*Nov 15 23:21:12.611: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(25710) tableid - 0
R1(config-router)#
*Nov 15 23:21:14.735: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(19533) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:16.728: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(19533) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:25.987: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(59799) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:27.986: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(59799) to 3.0.0.1(179) tableid - 0
*Nov 15 23:21:28.017: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(54756) tableid - 0
R1(config-router)#
*Nov 15 23:21:30.014: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(54756) tableid - 0
*Nov 15 23:21:30.025: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(54756) tableid - 0
R1(config-router)#
*Nov 15 23:21:39.281: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(33234) tableid - 0
R1(config-router)#
*Nov 15 23:21:41.279: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(33234) tableid - 0
*Nov 15 23:21:41.282: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(33234) tableid - 0
R1(config-router)#
*Nov 15 23:21:44.415: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(13411) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:46.415: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(13411) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:53.614: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(59887) tableid - 0
R1(config-router)#
*Nov 15 23:21:55.614: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(59887) tableid - 0
*Nov 15 23:21:55.618: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(59887) tableid - 0
R1(config-router)#
*Nov 15 23:21:56.702: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(18639) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:21:58.702: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(18639) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:22:04.881: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(53560) tableid - 0
R1(config-router)#
*Nov 15 23:22:06.880: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(53560) tableid - 0
*Nov 15 23:22:06.883: %TCP-6-BADAUTH: No MD5 digest from 3.0.0.2(179) to 3.0.0.1(53560) tableid - 0
R1(config-router)#
*Nov 15 23:22:08.988: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(42815) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:22:10.989: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(42815) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:22:20.244: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(41817) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:22:22.252: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(41817) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:22:36.657: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Up
R1(config-router)#neighbor 3.0.0.2 password CCIC
R1(config-router)#clear ip ro *
                  ^
% Invalid input detected at '^' marker.

R1(config-router)#dclear ip ro *
*Nov 15 23:23:14.475: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
R1(config-router)#do clear ip ro *
R1(config-router)#sh ip ro
*Nov 15 23:23:17.430: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
R1(config-router)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      2.0.0.0/24 is subnetted, 1 subnets
B        2.2.2.0 [20/0] via 3.0.0.2, 00:00:04
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1(config-router)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      2.0.0.0/24 is subnetted, 1 subnets
B        2.2.2.0 [20/0] via 3.0.0.2, 00:00:06
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1(config-router)#do clear ip ro *
*Nov 15 23:23:23.289: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
*Nov 15 23:23:23.657: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
R1(config-router)#do clear ip ro *
R1(config-router)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      2.0.0.0/24 is subnetted, 1 subnets
B        2.2.2.0 [20/0] via 3.0.0.2, 00:00:02
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1(config-router)#do clear ip bgp
*Nov 15 23:23:32.847: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
R1(config-router)#do clear ip bgp *
*Nov 15 23:23:34.805: %BGP-3-NOTIFICATION: sent to neighbor 3.0.0.2 4/0 (hold time expired) 0 bytes
*Nov 15 23:23:34.808: %BGP-5-NBR_RESET: Neighbor 3.0.0.2 reset (BGP Notification sent)
*Nov 15 23:23:34.811: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Down BGP Notification sent
*Nov 15 23:23:34.812: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.2 IPv4 Unicast topology base removed from session  BGP Notification sent
R1(config-router)#
*Nov 15 23:23:35.059: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48258) to 3.0.0.1(179) tableid - 0
R1(config-router)#do sh ip ro
*Nov 15 23:23:35.501: %BGP-3-NOTIFICATION_ALL: sent to all sessions 6/4 (Administrative Reset)
R1(config-router)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1(config-router)#
*Nov 15 23:23:43.108: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(15794) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:23:45.108: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(15794) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:23:54.379: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48300) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:23:56.376: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(48300) to 3.0.0.1(179) tableid - 0
R1(config-router)#do sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1(config-router)#neighbor 3.0.0.2 password CCI
*Nov 15 23:24:10.758: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(54450) to 3.0.0.1(179) tableid - 0
R1(config-router)#neighbor 3.0.0.2 password CCIE
R1(config-router)#
*Nov 15 23:24:12.758: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.2(54450) to 3.0.0.1(179) tableid - 0
R1(config-router)#
*Nov 15 23:24:14.263: %BGP-5-ADJCHANGE: neighbor 3.0.0.2 Up
R1(config-router)#
R1(config-router)#do sh ip ro bgp
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, p - overrides from PfR

Gateway of last resort is not set

      2.0.0.0/24 is subnetted, 1 subnets
B        2.2.2.0 [20/0] via 3.0.0.2, 00:00:35
R1(config-router)#
R2(config-router)#
*Nov 15 23:21:02.426: %BGP-3-NOTIFICATION: received from neighbor 3.0.0.1 6/4 (Administrative Reset) 0 bytes
R2(config-router)#
*Nov 15 23:21:02.426: %BGP-5-NBR_RESET: Neighbor 3.0.0.1 reset (BGP Notification received)
*Nov 15 23:21:02.431: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Down BGP Notification received
*Nov 15 23:21:02.431: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.1 IPv4 Unicast topology base removed from session  BGP Notification received
R2(config-router)#neigh
R2(config-router)#neighbor 3.0.0.1 auth
R2(config-router)#neighbor 3.0.0.1 authe
R2(config-router)#neighbor 3.0.0.1 passwo
R2(config-router)#neighbor 3.0.0.1 password CISCO
R2(config-router)#
*Nov 15 23:22:17.227: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(18979) to 3.0.0.2(179) tableid - 0
R2(config-router)#
*Nov 15 23:22:19.231: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(18979) to 3.0.0.2(179) tableid - 0
R2(config-router)#neighbor 3.0.0.1 password
*Nov 15 23:22:27.472: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(13473) to 3.0.0.2(179) tableid - 0
R2(config-router)#neighbor 3.0.0.1 password CCIE
R2(config-router)#
*Nov 15 23:22:29.470: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(13473) to 3.0.0.2(179) tableid - 0
R2(config-router)#
*Nov 15 23:22:36.721: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Up
R2(config-router)#
*Nov 15 23:23:14.398: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
R2(config-router)#
*Nov 15 23:23:17.344: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
R2(config-router)#
*Nov 15 23:23:23.281: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
*Nov 15 23:23:23.649: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
R2(config-router)#
*Nov 15 23:23:33.916: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
R2(config-router)#
*Nov 15 23:23:34.944: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
*Nov 15 23:23:34.947: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
*Nov 15 23:23:35.106: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) tableid - 0
*Nov 15 23:23:36.051: %BGP-3-NOTIFICATION: sent to neighbor 3.0.0.1 4/0 (hold time expired) 0 bytes
*Nov 15 23:23:36.053: %BGP-5-NBR_RESET: Neighbor 3.0.0.1 reset (BGP Notification sent)
*Nov 15 23:23:36.058: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Down BGP Notification sent
*Nov 15 23:23:36.059: %BGP_SESSION-5-ADJCHANGE: neighbor 3.0.0.1 IPv4 Unicast topology base removed from session  BGP Notification sent
R2(config-router)#
*Nov 15 23:23:36.061: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) (RST) tableid - 0
*Nov 15 23:23:36.061: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) (RST) tableid - 0
R2(config-router)#do hs i
*Nov 15 23:23:43.639: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(13695) to 3.0.0.2(179) tableid - 0
R2(config-router)#do clear
*Nov 15 23:23:45.636: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(13695) to 3.0.0.2(179) tableid - 0
R2(config-router)#do clear ip bgp *
R2(config-router)#
*Nov 15 23:23:49.431: %BGP-3-NOTIFICATION_ALL: sent to all sessions 6/4 (Administrative Reset)
R2(config-router)#do sh ip ro b
*Nov 15 23:23:56.964: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(46987) to 3.0.0.2(179) tableid - 0g
R2(config-router)#do sh ip ro bgp
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, p - overrides from PfR

Gateway of last resort is not set

R2(config-router)#
*Nov 15 23:23:58.798: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(179) to 3.0.0.2(48258) (RST) tableid - 0
*Nov 15 23:23:58.967: %TCP-6-BADAUTH: Invalid MD5 digest from 3.0.0.1(46987) to 3.0.0.2(179) tableid - 0
R2(config-router)#
*Nov 15 23:24:14.409: %BGP-5-NBR_RESET: Neighbor 3.0.0.1 active reset (BGP Notification sent)
*Nov 15 23:24:14.410: %BGP-5-ADJCHANGE: neighbor 3.0.0.1 Up
R2(config-router)#do sh ip ro bgp
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/24 is subnetted, 1 subnets
B        1.1.1.0 [20/0] via 3.0.0.1, 00:00:47
R2(config-router)#

show ip bgp

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int Lo0
ip address 1.1.1.1 255.255.255.255
exit
int gig0/0
ip address 1.2.0.1 255.255.255.0
no shut
exit
!
router bgp 1
neighbor 1.2.0.2 remote-as 2
network 1.1.1.1 mask 255.255.255.255
network 1.2.0.0 mask 255.255.255.0
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int Lo0
ip address 2.2.2.2 255.255.255.255
exit
int gig0/0
ip address 2.3.0.2 255.255.255.0
no shut
exit
int gig0/1
ip address 1.2.0.2 255.255.255.0
no shut
exit
!
router bgp 2
neighbor 1.2.0.1 remote-as 1
neighbor 2.3.0.3 remote-as 3
network 2.2.2.2 mask 255.255.255.255
network 1.2.0.0 mask 255.255.255.0
network 2.3.0.0 mask 255.255.255.0
exit
!
end
wr
  • R3
en
conf t
!
hostname R3
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int Lo0
ip address 3.3.3.3 255.255.255.255
exit
int gig0/0
ip address 3.4.0.3 255.255.255.0
no shut
exit
int gig0/1
ip address 2.3.0.3 255.255.255.0
no shut
exit
!
router bgp 3
neighbor 2.3.0.2 remote-as 2
neighbor 3.4.0.4 remote-as 4
network 3.3.3.3 mask 255.255.255.255
network 2.3.0.0 mask 255.255.255.0
network 3.4.0.0 mask 255.255.255.0
exit
!
end
wr
  • R4
en
conf t
!
hostname R4
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int Lo0
ip address 4.4.4.4 255.255.255.255
exit
int gig0/1
ip address 3.4.0.4 255.255.255.0
no shut
exit
!
router bgp 4
neighbor 3.4.0.3 remote-as 3
network 4.4.4.4 mask 255.255.255.255
network 3.4.0.0 mask 255.255.255.0
exit
!
end
wr
R1#sh ip bgp
BGP table version is 8, local router ID is 1.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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       0.0.0.0                  0         32768 i
 *   1.2.0.0/24       1.2.0.2                  0             0 2 i
 *>                   0.0.0.0                  0         32768 i
 *>  2.2.2.2/32       1.2.0.2                  0             0 2 i
 *>  2.3.0.0/24       1.2.0.2                  0             0 2 i
 *>  3.3.3.3/32       1.2.0.2                                0 2 3 i
 *>  3.4.0.0/24       1.2.0.2                                0 2 3 i
 *>  4.4.4.4/32       1.2.0.2                                0 2 3 4 i
R1#sh ip bgp rib-failu
R1#sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
R1#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        1.1.1.1/32 is directly connected, Loopback0
C        1.2.0.0/24 is directly connected, GigabitEthernet0/0
L        1.2.0.1/32 is directly connected, GigabitEthernet0/0
      2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        2.2.2.2/32 [20/0] via 1.2.0.2, 00:06:37
B        2.3.0.0/24 [20/0] via 1.2.0.2, 00:06:37
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        3.3.3.3/32 [20/0] via 1.2.0.2, 00:06:37
B        3.4.0.0/24 [20/0] via 1.2.0.2, 00:06:37
      4.0.0.0/32 is subnetted, 1 subnets
B        4.4.4.4 [20/0] via 1.2.0.2, 00:06:37
R1#
R1#sh ip protocols | s bgp
Routing Protocol is "bgp 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is disabled
  Neighbor(s):
    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap
    1.2.0.2
  Maximum path: 1
  Routing Information Sources:
    Gateway         Distance      Last Update
    1.2.0.2               20      00:10:59
  Distance: external 20 internal 200 local 200
R1#
R2#sh ip bgp
BGP table version is 8, local router ID is 2.2.2.2
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       1.2.0.1                  0             0 1 i
 *   1.2.0.0/24       1.2.0.1                  0             0 1 i
 *>                   0.0.0.0                  0         32768 i
 *>  2.2.2.2/32       0.0.0.0                  0         32768 i
 *   2.3.0.0/24       2.3.0.3                  0             0 3 i
 *>                   0.0.0.0                  0         32768 i
 *>  3.3.3.3/32       2.3.0.3                  0             0 3 i
 *>  3.4.0.0/24       2.3.0.3                  0             0 3 i
 *>  4.4.4.4/32       2.3.0.3                                0 3 4 i
R2#sh ip bgp rib-failu
R2#sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
R2#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B        1.1.1.1/32 [20/0] via 1.2.0.1, 00:06:37
C        1.2.0.0/24 is directly connected, GigabitEthernet0/1
L        1.2.0.2/32 is directly connected, GigabitEthernet0/1
      2.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        2.2.2.2/32 is directly connected, Loopback0
C        2.3.0.0/24 is directly connected, GigabitEthernet0/0
L        2.3.0.2/32 is directly connected, GigabitEthernet0/0
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        3.3.3.3/32 [20/0] via 2.3.0.3, 00:06:37
B        3.4.0.0/24 [20/0] via 2.3.0.3, 00:06:37
      4.0.0.0/32 is subnetted, 1 subnets
B        4.4.4.4 [20/0] via 2.3.0.3, 00:06:37
R2#
R2#sh ip protocols | s bgp
Routing Protocol is "bgp 2"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is disabled
  Neighbor(s):
    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap
    1.2.0.1
    2.3.0.3
  Maximum path: 1
  Routing Information Sources:
    Gateway         Distance      Last Update
    2.3.0.3               20      00:10:59
    1.2.0.1               20      00:10:59
  Distance: external 20 internal 200 local 200
R2#
R3#sh ip bgp
BGP table version is 8, local router ID is 3.3.3.3
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       2.3.0.2                                0 2 1 i
 *>  1.2.0.0/24       2.3.0.2                  0             0 2 i
 *>  2.2.2.2/32       2.3.0.2                  0             0 2 i
 *   2.3.0.0/24       2.3.0.2                  0             0 2 i
 *>                   0.0.0.0                  0         32768 i
 *>  3.3.3.3/32       0.0.0.0                  0         32768 i
 *   3.4.0.0/24       3.4.0.4                  0             0 4 i
 *>                   0.0.0.0                  0         32768 i
 *>  4.4.4.4/32       3.4.0.4                  0             0 4 i
R3#sh ip bgp rib-failu
R3#sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
R3#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        1.1.1.1/32 [20/0] via 2.3.0.2, 00:06:37
B        1.2.0.0/24 [20/0] via 2.3.0.2, 00:06:37
      2.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B        2.2.2.2/32 [20/0] via 2.3.0.2, 00:06:37
C        2.3.0.0/24 is directly connected, GigabitEthernet0/1
L        2.3.0.3/32 is directly connected, GigabitEthernet0/1
      3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        3.3.3.3/32 is directly connected, Loopback0
C        3.4.0.0/24 is directly connected, GigabitEthernet0/0
L        3.4.0.3/32 is directly connected, GigabitEthernet0/0
      4.0.0.0/32 is subnetted, 1 subnets
B        4.4.4.4 [20/0] via 3.4.0.4, 00:06:37
R3#
3#sh ip protocols | s bgp
Routing Protocol is "bgp 3"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is disabled
  Neighbor(s):
    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap
    2.3.0.2
    3.4.0.4
  Maximum path: 1
  Routing Information Sources:
    Gateway         Distance      Last Update
    2.3.0.2               20      00:10:59
    3.4.0.4               20      00:11:00
  Distance: external 20 internal 200 local 200
R3#
R4#sh ip bgp
BGP table version is 8, local router ID is 4.4.4.4
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       3.4.0.3                                0 3 2 1 i
 *>  1.2.0.0/24       3.4.0.3                                0 3 2 i
 *>  2.2.2.2/32       3.4.0.3                                0 3 2 i
 *>  2.3.0.0/24       3.4.0.3                  0             0 3 i
 *>  3.3.3.3/32       3.4.0.3                  0             0 3 i
 *   3.4.0.0/24       3.4.0.3                  0             0 3 i
 *>                   0.0.0.0                  0         32768 i
 *>  4.4.4.4/32       0.0.0.0                  0         32768 i
R4#sh ip bgp rib-failu
R4#sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
R4#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        1.1.1.1/32 [20/0] via 3.4.0.3, 00:06:07
B        1.2.0.0/24 [20/0] via 3.4.0.3, 00:06:07
      2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B        2.2.2.2/32 [20/0] via 3.4.0.3, 00:06:07
B        2.3.0.0/24 [20/0] via 3.4.0.3, 00:06:37
      3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B        3.3.3.3/32 [20/0] via 3.4.0.3, 00:06:37
C        3.4.0.0/24 is directly connected, GigabitEthernet0/1
L        3.4.0.4/32 is directly connected, GigabitEthernet0/1
      4.0.0.0/32 is subnetted, 1 subnets
C        4.4.4.4 is directly connected, Loopback0
R4#
R4#sh ip protocols | s bgp
Routing Protocol is "bgp 4"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is disabled
  Neighbor(s):
    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap
    3.4.0.3
  Maximum path: 1
  Routing Information Sources:
    Gateway         Distance      Last Update
    3.4.0.3               20      00:10:29
  Distance: external 20 internal 200 local 200
R4#
R2#sh ip bgp neighbors
BGP neighbor is 1.2.0.1,  remote AS 1, external link
  BGP version 4, remote router ID 1.1.1.1
  BGP state = Established, up for 00:14:43
  Last read 00:00:34, last write 00:00:56, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                5          2
    Keepalives:            16         17
    Route Refresh:          0          0
    Total:                 22         20
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  Session: 1.2.0.1
  BGP table version 8, neighbor version 8/0
  Output queue size : 0
  Index 1, Advertise bit 0
  1 update-group member
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               7          2 (Consumes 160 bytes)
    Prefixes Total:                 7          2
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          1
    Used as multipath:            n/a          0

                                   Outbound    Inbound
  Local Policy Denied Prefixes:    --------    -------
    Total:                                0          0
  Number of NLRIs in the update sent: max 3, min 0
  Last detected as dynamic slow peer: never
  Dynamic slow peer recovered: never
  Refresh Epoch: 1
  Last Sent Refresh Start-of-rib: never
  Last Sent Refresh End-of-rib: never
  Last Received Refresh Start-of-rib: never
  Last Received Refresh End-of-rib: never
				       Sent	  Rcvd
	Refresh activity:	       ----	  ----
	  Refresh Start-of-RIB          0          0
	  Refresh End-of-RIB            0          0

  Address tracking is enabled, the RIB does have a route to 1.2.0.1
  Connections established 1; dropped 0
  Last reset never
  External BGP neighbor configured for connected checks (single-hop no-disable-connected-check)
  Interface associated: GigabitEthernet0/1 (peering address in same link)
  Transport(tcp) path-mtu-discovery is enabled
  Graceful-Restart is disabled
  SSO is disabled
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
Local host: 1.2.0.2, Local port: 179
Foreign host: 1.2.0.1, Foreign port: 27948
Connection tableid (VRF): 0
Maximum output segment queue size: 50

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0xE1DA1):
Timer          Starts    Wakeups            Next
Retrans            18          0             0x0
TimeWait            0          0             0x0
AckHold            18         16             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0
Linger              0          0             0x0
ProcessQ            0          0             0x0

iss: 1533992120  snduna: 1533992732  sndnxt: 1533992732
irs: 2632604529  rcvnxt: 2632604992

sndwnd:  15773  scale:      0  maxrcvwnd:  16384
rcvwnd:  15922  scale:      0  delrcvwnd:    462

SRTT: 909 ms, RTTO: 1600 ms, RTV: 691 ms, KRTT: 0 ms
minRTT: 203 ms, maxRTT: 1000 ms, ACK hold: 200 ms
uptime: 884259 ms, Sent idletime: 33842 ms, Receive idletime: 34042 ms
Status Flags: passive open, gen tcbs
Option Flags: nagle, path mtu capable
IP Precedence value : 6

Datagrams (max data segment is 1460 bytes):
Rcvd: 38 (out of order: 0), with data: 19, total data bytes: 462
Sent: 37 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 18, total data bytes: 611

 Packets received in fast path: 0, fast processed: 0, slow path: 0
 fast lock acquisition failures: 0, slow path: 0
TCP Semaphore      0x10BAF124  FREE

BGP neighbor is 2.3.0.3,  remote AS 3, external link
  BGP version 4, remote router ID 3.3.3.3
  BGP state = Established, up for 00:14:29
  Last read 00:00:03, last write 00:00:03, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv4 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability:
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0

                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                5          5
    Keepalives:            17         16
    Route Refresh:          0          0
    Total:                 23         22
  Do log neighbor state changes (via global configuration)
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv4 Unicast
  Session: 2.3.0.3
  BGP table version 8, neighbor version 8/0
  Output queue size : 0
  Index 1, Advertise bit 0
  1 update-group member
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               7          4 (Consumes 320 bytes)
    Prefixes Total:                 7          4
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          3
    Used as multipath:            n/a          0

                                   Outbound    Inbound
  Local Policy Denied Prefixes:    --------    -------
    AS_PATH loop:                       n/a          3
    Total:                                0          3
  Number of NLRIs in the update sent: max 3, min 0
  Last detected as dynamic slow peer: never
  Dynamic slow peer recovered: never
  Refresh Epoch: 1
  Last Sent Refresh Start-of-rib: never
  Last Sent Refresh End-of-rib: never
  Last Received Refresh Start-of-rib: never
  Last Received Refresh End-of-rib: never
				       Sent	  Rcvd
	Refresh activity:	       ----	  ----
	  Refresh Start-of-RIB          0          0
	  Refresh End-of-RIB            0          0

  Address tracking is enabled, the RIB does have a route to 2.3.0.3
  Connections established 1; dropped 0
  Last reset never
  External BGP neighbor configured for connected checks (single-hop no-disable-connected-check)
  Interface associated: GigabitEthernet0/0 (peering address in same link)
  Transport(tcp) path-mtu-discovery is enabled
  Graceful-Restart is disabled
  SSO is disabled
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
Local host: 2.3.0.2, Local port: 179
Foreign host: 2.3.0.3, Foreign port: 42889
Connection tableid (VRF): 0
Maximum output segment queue size: 50

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0xE1DA2):
Timer          Starts    Wakeups            Next
Retrans            19          0             0x0
TimeWait            0          0             0x0
AckHold            18         16             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0
Linger              0          0             0x0
ProcessQ            0          0             0x0

iss: 1035197773  snduna: 1035198404  sndnxt: 1035198404
irs: 1884405973  rcvnxt: 1884406585

sndwnd:  15754  scale:      0  maxrcvwnd:  16384
rcvwnd:  15773  scale:      0  delrcvwnd:    611

SRTT: 921 ms, RTTO: 1531 ms, RTV: 610 ms, KRTT: 0 ms
minRTT: 202 ms, maxRTT: 1000 ms, ACK hold: 200 ms
uptime: 870140 ms, Sent idletime: 3023 ms, Receive idletime: 2820 ms
Status Flags: passive open, gen tcbs
Option Flags: nagle, path mtu capable
IP Precedence value : 6

Datagrams (max data segment is 1460 bytes):
Rcvd: 39 (out of order: 0), with data: 19, total data bytes: 611
Sent: 38 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 19, total data bytes: 630

 Packets received in fast path: 0, fast processed: 0, slow path: 0
 fast lock acquisition failures: 0, slow path: 0
TCP Semaphore      0x10BAF274  FREE
R1#sh ip bgp summary
BGP router identifier 1.1.1.1, local AS number 1
BGP table version is 8, main routing table version 8
7 network entries using 1008 bytes of memory
8 path entries using 640 bytes of memory
4/4 BGP path/bestpath attribute entries using 608 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2328 total bytes of memory
BGP activity 7/0 prefixes, 8/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.2.0.2         4            2      38      35        8    0    0 00:28:35        6
R1#
R2#sh ip bgp summary
BGP router identifier 2.2.2.2, local AS number 2
BGP table version is 8, main routing table version 8
7 network entries using 1008 bytes of memory
9 path entries using 720 bytes of memory
4/4 BGP path/bestpath attribute entries using 608 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2408 total bytes of memory
BGP activity 7/0 prefixes, 9/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.2.0.1         4            1      35      38        8    0    0 00:28:35        2
2.3.0.3         4            3      38      38        8    0    0 00:28:20        4
R2#
R3#sh ip bgp summary
BGP router identifier 3.3.3.3, local AS number 3
BGP table version is 8, main routing table version 8
7 network entries using 1008 bytes of memory
9 path entries using 720 bytes of memory
4/4 BGP path/bestpath attribute entries using 608 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2408 total bytes of memory
BGP activity 7/0 prefixes, 9/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.3.0.2         4            2      38      38        8    0    0 00:28:21        4
3.4.0.4         4            4      35      37        8    0    0 00:28:34        2
R3#
R4#sh ip bgp summary
BGP router identifier 4.4.4.4, local AS number 4
BGP table version is 8, main routing table version 8
7 network entries using 1008 bytes of memory
8 path entries using 640 bytes of memory
4/4 BGP path/bestpath attribute entries using 608 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2328 total bytes of memory
BGP activity 7/0 prefixes, 8/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
3.4.0.3         4            3      37      35        8    0    0 00:28:34        6
R4#

RIB failure Lab

configure static route to 3.3.3.3/32.

R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#do sh ip bgp
BGP table version is 8, local router ID is 2.2.2.2
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       1.2.0.1                  0             0 1 i
 *   1.2.0.0/24       1.2.0.1                  0             0 1 i
 *>                   0.0.0.0                  0         32768 i
 *>  2.2.2.2/32       0.0.0.0                  0         32768 i
 *   2.3.0.0/24       2.3.0.3                  0             0 3 i
 *>                   0.0.0.0                  0         32768 i
 *>  3.3.3.3/32       2.3.0.3                  0             0 3 i
 *>  3.4.0.0/24       2.3.0.3                  0             0 3 i
 *>  4.4.4.4/32       2.3.0.3                                0 3 4 i
R2(config)#ip ro 3.3.3.3 255.255.255.255 2.3.0.3
% Ambiguous command:  "ip ro 3.3.3.3 255.255.255.255 2.3.0.3"
R2(config)#ip ro ?
% Ambiguous command:  "ip ro "
R2(config)#ip route
R2(config)#ip route 3.3.3.3 255.255.255.255 2.3.0.3
R2(config)#do sh ip bgp
BGP table version is 9, local router ID is 2.2.2.2
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       1.2.0.1                  0             0 1 i
 *   1.2.0.0/24       1.2.0.1                  0             0 1 i
 *>                   0.0.0.0                  0         32768 i
 *>  2.2.2.2/32       0.0.0.0                  0         32768 i
 *   2.3.0.0/24       2.3.0.3                  0             0 3 i
 *>                   0.0.0.0                  0         32768 i
 r>  3.3.3.3/32       2.3.0.3                  0             0 3 i
 *>  3.4.0.0/24       2.3.0.3                  0             0 3 i
 *>  4.4.4.4/32       2.3.0.3                                0 3 4 i
R2(config)#
R2(config)#^Z
R2#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B        1.1.1.1/32 [20/0] via 1.2.0.1, 00:38:09
C        1.2.0.0/24 is directly connected, GigabitEthernet0/1
L        1.2.0.2/32 is directly connected, GigabitEthernet0/1
      2.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        2.2.2.2/32 is directly connected, Loopback0
C        2.3.0.0/24 is directly connected, GigabitEthernet0/0
L        2.3.0.2/32 is directly connected, GigabitEthernet0/0
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
S        3.3.3.3/32 [1/0] via 2.3.0.3
 --More--
*Nov 24 06:20:11.622: %SYS-5-CONFIG_I: Configured from console by console
B        3.4.0.0/24 [20/0] via 2.3.0.3, 00:38:09
      4.0.0.0/32 is subnetted, 1 subnets
B        4.4.4.4 [20/0] via 2.3.0.3, 00:38:09
R2#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/4/6 ms
R2#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/3/5 ms
R2#
R2#sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
3.3.3.3/32         2.3.0.3             Higher admin distance              n/a
R2#

debug lab

debug keepalives

debug ip bgp keepalives
debug ip bgp updates
debug ip bgp keepalives
R2#sh ip bgp neigh | i keep
  Last read 00:00:00, last write 00:00:26, hold time is 180, keepalive interval is 60 seconds
  Last read 00:00:08, last write 00:00:23, hold time is 180, keepalive interval is 60 seconds

set clock.

R1#clock set 0:0:0 1 Jan 2018
R2#clock set 0:0:0 1 Jan 2018
R3#clock set 0:0:0 1 Jan 2018
R4#clock set 0:0:0 1 Jan 2018
R1#debug ip bgp keepalives
BGP keepalives debugging is on for address family: IPv4 Unicast
R1#
Jan  1 00:02:15.480: BGP: ses global 1.2.0.2 (0x104CD1E8:1) Keep alive timer fired.
Jan  1 00:02:15.481: BGP: 1.2.0.2 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:02:15.482: BGP: ses global 1.2.0.2 (0x104CD1E8:1) service keepalive IO request.
Jan  1 00:02:15.485: BGP: 1.2.0.2 KEEPALIVE write request serviced in BGP_IO
R1#
Jan  1 00:02:35.490: BGP: 1.2.0.2 received KEEPALIVE, length (excl. header) 0
R1#
Jan  1 00:03:06.686: BGP: ses global 1.2.0.2 (0x104CD1E8:1) Keep alive timer fired.
Jan  1 00:03:06.687: BGP: 1.2.0.2 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:03:06.688: BGP: ses global 1.2.0.2 (0x104CD1E8:1) service keepalive IO request.
Jan  1 00:03:06.691: BGP: 1.2.0.2 KEEPALIVE write request serviced in BGP_IO
R1#u all
All possible debugging has been turned off
R1#
R2#debug ip bgp keepalives
BGP keepalives debugging is on for address family: IPv4 Unicast
R2#
Jan  1 00:02:17.238: BGP: 1.2.0.1 received KEEPALIVE, length (excl. header) 0
R2#
Jan  1 00:02:18.795: BGP: ses global 2.3.0.3 (0x10B57070:1) Keep alive timer fired.
Jan  1 00:02:18.796: BGP: 2.3.0.3 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:02:18.797: BGP: ses global 2.3.0.3 (0x10B57070:1) service keepalive IO request.
Jan  1 00:02:18.800: BGP: 2.3.0.3 KEEPALIVE write request serviced in BGP_IO
R2#
Jan  1 00:02:37.227: BGP: ses global 1.2.0.1 (0x10940280:1) Keep alive timer fired.
Jan  1 00:02:37.228: BGP: 1.2.0.1 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:02:37.229: BGP: ses global 1.2.0.1 (0x10940280:1) service keepalive IO request.
Jan  1 00:02:37.231: BGP: 1.2.0.1 KEEPALIVE write request serviced in BGP_IO
R2#
Jan  1 00:02:42.104: BGP: 2.3.0.3 received KEEPALIVE, length (excl. header) 0
R2#
Jan  1 00:03:08.423: BGP: 1.2.0.1 received KEEPALIVE, length (excl. header) 0
R2#u all
All possible debugging has been turned off
R2#
R3#debug ip bgp keepalives
BGP keepalives debugging is on for address family: IPv4 Unicast
R3#
Jan  1 00:02:18.131: BGP: 2.3.0.2 received KEEPALIVE, length (excl. header) 0
R3#
Jan  1 00:02:41.438: BGP: ses global 2.3.0.2 (0xCA81CD0:1) Keep alive timer fired.
Jan  1 00:02:41.439: BGP: 2.3.0.2 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:02:41.440: BGP: ses global 2.3.0.2 (0xCA81CD0:1) service keepalive IO request.
Jan  1 00:02:41.442: BGP: 2.3.0.2 KEEPALIVE write request serviced in BGP_IO
R3#
Jan  1 00:02:51.680: BGP: ses global 3.4.0.4 (0xCA81EC0:1) Keep alive timer fired.
Jan  1 00:02:51.681: BGP: 3.4.0.4 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:02:51.682: BGP: ses global 3.4.0.4 (0xCA81EC0:1) service keepalive IO request.
Jan  1 00:02:51.684: BGP: 3.4.0.4 KEEPALIVE write request serviced in BGP_IO
R3#
Jan  1 00:03:06.158: BGP: 3.4.0.4 received KEEPALIVE, length (excl. header) 0
R3#u all
All possible debugging has been turned off
R3#
R4#debug ip bgp keepalives
BGP keepalives debugging is on for address family: IPv4 Unicast
R4#
Jan  1 00:02:51.372: BGP: 3.4.0.3 received KEEPALIVE, length (excl. header) 0
R4#
Jan  1 00:03:05.839: BGP: ses global 3.4.0.3 (0x10C7F720:1) Keep alive timer fired.
Jan  1 00:03:05.840: BGP: 3.4.0.3 KEEPALIVE requested (bgp_keepalive_timer_expired)
Jan  1 00:03:05.841: BGP: ses global 3.4.0.3 (0x10C7F720:1) service keepalive IO request.
Jan  1 00:03:05.844: BGP: 3.4.0.3 KEEPALIVE write request serviced in BGP_IO
R4#u all
All possible debugging has been turned off
R4#

debug updates

debug ip bgp updates

set clock.

R1#clock set 0:0:0 1 Jan 2018
R2#clock set 0:0:0 1 Jan 2018
R3#clock set 0:0:0 1 Jan 2018
R4#clock set 0:0:0 1 Jan 2018
R1#clock set 0:0:0 1 Jan 2018
R1#debug ip bgp updates
Jan  1 00:00:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:28:35 UTC Mon Jan 1 2018 to 00:00:00 UTC Mon Jan 1 2018, configured from console by console.
R1#debug ip bgp updates
BGP updates debugging is on for address family: IPv4 Unicast
R1#clear ip bgp *
R1#
Jan  1 00:00:11.686: %BGP-3-NOTIFICATION_ALL: sent to all sessions 6/4 (Administrative Reset)
R1#
Jan  1 00:00:11.713: %BGP-5-ADJCHANGE: neighbor 1.2.0.2 Down User reset
Jan  1 00:00:11.713: %BGP_SESSION-5-ADJCHANGE: neighbor 1.2.0.2 IPv4 Unicast topology base removed from session  User reset
R1#
Jan  1 00:00:21.662: %BGP-5-ADJCHANGE: neighbor 1.2.0.2 Up
Jan  1 00:00:21.666: BGP: nbr_topo global 1.2.0.2 IPv4 Unicast:base (0x10E24DC8:1) rcvd Refresh Start-of-RIB
Jan  1 00:00:21.667: BGP: nbr_topo global 1.2.0.2 IPv4 Unicast:base (0x10E24DC8:1) refresh_epoch is 2
Jan  1 00:00:21.672: BGP(0): 1.2.0.2 rcvd UPDATE w/ attr: nexthop 1.2.0.2, origin i, merged path 2 3 4, AS_PATH
Jan  1 00:00:21.674: BGP(0): 1.2.0.2 rcvd 4.4.4.4/32
Jan  1 00:00:21.675: BGP(0): 1.2.0.2 rcvd UPDATE w/ attr: nexthop 1.2.0.2, origin i, merged path 2 3, AS_PATH
Jan  1 00:00:21.676: BGP(0): 1.2.0.2 rcvd 3.3.3.3/32
Jan  1 00:00:21.676: BGP(0): 1.2.0.2 rcvd 3.4.0.0/24
Jan  1 00:00:21.677: BGP(0): 1.2.0.2 rcvd UPDATE w/ attr: nexthop 1.2.0.2, origin i
R1#, metric 0, merged path 2, AS_PATH
Jan  1 00:00:21.678: BGP(0): 1.2.0.2 rcvd 1.2.0.0/24
Jan  1 00:00:21.679: BGP(0): 1.2.0.2 rcvd 2.2.2.2/32
Jan  1 00:00:21.679: BGP(0): 1.2.0.2 rcvd 2.3.0.0/24
Jan  1 00:00:21.680: BGP: nbr_topo global 1.2.0.2 IPv4 Unicast:base (0x10E24DC8:1) rcvd Refresh End-of-RIB
R1#
Jan  1 00:00:42.455: BGP(0): Revise route installing 1 of 1 routes for 1.2.0.0/24 -> 1.2.0.2(global) to main IP table
Jan  1 00:00:42.456: BGP(0): Revise route installing 1 of 1 routes for 2.2.2.2/32 -> 1.2.0.2(global) to main IP table
Jan  1 00:00:42.457: BGP(0): Revise route installing 1 of 1 routes for 2.3.0.0/24 -> 1.2.0.2(global) to main IP table
Jan  1 00:00:42.457: BGP(0): Revise route installing 1 of 1 routes for 3.3.3.3/32 -> 1.2.0.2(global) to main IP table
Jan  1 00:00:42.458: BGP(0): Revise route installing 1 of 1 routes for 3.4.0.0/24 -> 1.2.0.2(global) to main IP table
R1#
Jan  1 00:00:42.459: BGP(0): Revise route installing 1 of 1 routes for 4.4.4.4/32 -> 1.2.0.2(global) to main IP table
R1#
Jan  1 00:00:52.460: BGP(0): sourced route for 1.1.1.1/32 created
Jan  1 00:00:52.460: BGP(0): sourced route for 1.1.1.1/32 path 0x10D3A714 id 0 gw 0.0.0.0 created (weight 32768)
Jan  1 00:00:52.461: BGP(0): local route 1.1.1.1/32 added gw 0.0.0.0
Jan  1 00:00:52.461: BGP(0): sourced route for 1.2.0.0/24 path 0x10D3A90C id 0 gw 0.0.0.0 created (weight 32768)
Jan  1 00:00:52.461: BGP(0): local route 1.2.0.0/24 added gw 0.0.0.0
Jan  1 00:00:52.464: BGP: topo global:IPv4 Unicast:base Remove_fwdroute for 1.1.1.1/32
Jan  1 00:00:52.465: BGP: topo global:IPv4 Unicast:base Remove_fwdroute for 1.2.0.0/24
R1#
Jan  1 00:01:13.175: BGP(0): (base) 1.2.0.2 send UPDATE (format) 1.1.1.1/32, next 1.2.0.1, metric 0, path Local
Jan  1 00:01:13.192: BGP(0): 1.2.0.2 rcv UPDATE w/ attr: nexthop 1.2.0.2, origin i, originator 0.0.0.0, merged path 2 1, AS_PATH , community , extended community , SSA attribute
Jan  1 00:01:13.195: BGPSSA ssacount is 0
Jan  1 00:01:13.195: BGP(0): 1.2.0.2 rcv UPDATE about 1.1.1.1/32 -- DENIED due to: AS-PATH contains our own AS;
R1#undebug all
All possible debugging has been turned off
R1#
R2#clock set 0:0:0 1 Jan 2018
R2#debug ip bgp updates
BGP updates debugging is on for address family: IPv4 Unicast
R2#
Jan  1 00:00:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:28:30 UTC Mon Jan 1 2018 to 00:00:00 UTC Mon Jan 1 2018, configured from console by console.
R2#
Jan  1 00:00:11.336: %BGP-3-NOTIFICATION: received from neighbor 1.2.0.1 6/4 (Administrative Reset) 0 bytes
Jan  1 00:00:11.336: %BGP-5-NBR_RESET: Neighbor 1.2.0.1 reset (BGP Notification received)
Jan  1 00:00:11.337: BGP(0): no valid path for 1.1.1.1/32
Jan  1 00:00:11.340: %BGP-5-ADJCHANGE: neighbor 1.2.0.1 Down BGP Notification received
Jan  1 00:00:11.340: %BGP_SESSION-5-ADJCHANGE: neighbor 1.2.0.1 IPv4 Unicast topology base removed from session  BGP Notification received
R2#
Jan  1 00:00:11.341: BGP: topo global:IPv4 Unicast:base Remove_fwdroute for 1.1.1.1/32
Jan  1 00:00:11.343: BGP(0): (base) 2.3.0.3 send unreachable (format) 1.1.1.1/32
Jan  1 00:00:11.362: BGP(0): 2.3.0.3 rcv UPDATE about 1.1.1.1/32 -- withdrawn
R2#
Jan  1 00:00:21.285: %BGP-5-ADJCHANGE: neighbor 1.2.0.1 Up
R2#
Jan  1 00:00:21.291: BGP(0): (base) 1.2.0.1 send UPDATE (format) 4.4.4.4/32, next 1.2.0.2, metric 0, path 3 4
Jan  1 00:00:21.292: BGP(0): (base) 1.2.0.1 send UPDATE (format) 3.3.3.3/32, next 1.2.0.2, metric 0, path 3
Jan  1 00:00:21.293: BGP(0): (base) 1.2.0.1 send UPDATE (format) 1.2.0.0/24, next 1.2.0.2, metric 0, path Local
R2#
Jan  1 00:01:12.822: BGP(0): 1.2.0.1 rcvd UPDATE w/ attr: nexthop 1.2.0.1, origin i, metric 0, merged path 1, AS_PATH
Jan  1 00:01:12.824: BGP(0): 1.2.0.1 rcvd 1.1.1.1/32
Jan  1 00:01:12.825: BGP(0): 1.2.0.1 rcvd 1.2.0.0/24
Jan  1 00:01:12.825: BGP(0): Revise route installing 1 of 1 routes for 1.1.1.1/32 -> 1.2.0.1(global) to main IP table
Jan  1 00:01:12.829: BGP(0): 1.2.0.1 NEXT_HOP is on same subnet as the bgp peer and set to 1.2.0.1 for net 1.1.1.1/32, flags 200, sb: 1020000, mask: FFFFFF00
Jan  1 00:01:12.829: BGP(0): (base) 1.2.0.1 send UPDATE (format) 1.1.1.1/32, next 1.2.0.1, metric 0, path 1
Jan  1 00:01:12.841: BGP(0): 2.3.0.3 rcv UPDATE w/ attr:
R2#nexthop 2.3.0.3, origin i, originator 0.0.0.0, merged path 3 2 1, AS_PATH , community , extended community , SSA attribute
Jan  1 00:01:12.844: BGPSSA ssacount is 0
Jan  1 00:01:12.844: BGP(0): 2.3.0.3 rcv UPDATE about 1.1.1.1/32 -- DENIED due to: AS-PATH contains our own AS;
R2#u all
All possible debugging has been turned off
R2#

Sent UPDATE to 1.2.0.1.

Jan  1 00:00:21.291: BGP(0): (base) 1.2.0.1 send UPDATE (format) 4.4.4.4/32, next 1.2.0.2, metric 0, path 3 4
Jan  1 00:00:21.292: BGP(0): (base) 1.2.0.1 send UPDATE (format) 3.3.3.3/32, next 1.2.0.2, metric 0, path 3
Jan  1 00:00:21.293: BGP(0): (base) 1.2.0.1 send UPDATE (format) 1.2.0.0/24, next 1.2.0.2, metric 0, path Local

Received UPDATE from 1.2.0.1

Jan  1 00:01:12.822: BGP(0): 1.2.0.1 rcvd UPDATE w/ attr: nexthop 1.2.0.1, origin i, metric 0, merged path 1, AS_PATH
Jan  1 00:01:12.824: BGP(0): 1.2.0.1 rcvd 1.1.1.1/32
Jan  1 00:01:12.825: BGP(0): 1.2.0.1 rcvd 1.2.0.0/24

check BGP neighbor state

R1#sh ip bgp neighbors | i BGP state
  BGP state = Established, up for 00:06:38
R2#sh ip bgp neighbors | inc BGP state
  BGP state = Established, up for 00:07:01
  BGP state = Established, up for 00:34:44
R3#sh ip bgp neighbors | include BGP state
  BGP state = Established, up for 00:35:00
  BGP state = Established, up for 00:34:58
R4#sh ip bgp neigh | i BGP state
  BGP state = Established, up for 00:35:13

show ip bgp result on iBGP lab

Project name: ccna-bgp6-show-ip-bgp-ibgp

Be careful this lab BGP session is same AS Number.
Therefore, iBGP session show ip bgp lab.

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 1.1.1.1 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.1 255.255.255.0
no shut
exit
!
router bgp 1
neighbor 3.0.0.2 remote-as 1
network 1.1.1.0 mask 255.255.255.0
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 2.2.2.2 255.255.255.0
no shut
exit
int gig0/1
ip address 3.0.0.2 255.255.255.0
no shut
exit
!
router bgp 1
neighbor 3.0.0.1 remote-as 1
network 2.2.2.0 mask 255.255.255.0
exit
!
end
wr
  • PC1
ip 1.1.1.254 255.255.255.0 1.1.1.1
save
  • PC2
ip 2.2.2.254 255.255.255.0 2.2.2.2
save

following results shows *>i i is iBGP route. and administrative distance 200.

R1#sh ip bgp
BGP table version is 5, local router ID is 3.0.0.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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.0/24       0.0.0.0                  0         32768 i
 *>i 2.2.2.0/24       3.0.0.2                  0    100      0 i
R1#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, GigabitEthernet0/0
L        1.1.1.1/32 is directly connected, GigabitEthernet0/0
      2.0.0.0/24 is subnetted, 1 subnets
B        2.2.2.0 [200/0] via 3.0.0.2, 00:02:56
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.1/32 is directly connected, GigabitEthernet0/1
R1#
R2#sh ip bgp
BGP table version is 3, local router ID is 3.0.0.2
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,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>i 1.1.1.0/24       3.0.0.1                  0    100      0 i
 *>  2.2.2.0/24       0.0.0.0                  0         32768 i
R2#sh ip ro
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, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/24 is subnetted, 1 subnets
B        1.1.1.0 [200/0] via 3.0.0.1, 00:03:31
      2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        2.2.2.0/24 is directly connected, GigabitEthernet0/0
L        2.2.2.2/32 is directly connected, GigabitEthernet0/0
      3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        3.0.0.0/24 is directly connected, GigabitEthernet0/1
L        3.0.0.2/32 is directly connected, GigabitEthernet0/1
R2#

References

tech/network/cisco/bgp/bgp/bgp-getting-started/bgp-getting-started.txt · Last modified: 2018/11/24 18:11 by wnoguchi