Wednesday 29 April 2020

BGP CHAPTER 7 - SHUTTING BGP NEIGHBOR


R1#sh run int s0
Building configuration...

Current configuration : 60 bytes
!
interface Serial0
 ip address 12.1.1.1 255.255.255.0
end

R2#sh run int s0
Building configuration...

Current configuration : 60 bytes
!
interface Serial0
 ip address 12.1.1.2 255.255.255.0
end


R1#sh run | section bgp
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 neighbor 12.1.1.2 remote-as 200
 no auto-summary


R2#sh run | section bgp
router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 12.1.1.1 remote-as 100
 no auto-summary

R1(config)#router bgp 100

R1(config-router)#neighbor 12.1.1.2 shutdown

R1(config-router)#^Z
R1#
*Mar  1 00:05:05.175: BGPNSF state: 12.1.1.2 went from nsf_not_active to nsf_not_active
*Mar  1 00:05:05.175: BGP: 12.1.1.2 went from Established to Idle
*Mar  1 00:05:05.175: %BGP-5-ADJCHANGE: neighbor 12.1.1.2 Down Admin. shutdown
*Mar  1 00:05:05.175: BGP: 12.1.1.2 closing
R1#
*Mar  1 00:05:05.247: %SYS-5-CONFIG_I: Configured from console by console
R1#

R1#sh ip bgp sum
BGP router identifier 12.1.1.1, local AS number 100
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
12.1.1.2            4   200       2             2        0    0    0                               00:01:22     Idle (Admin)

R2#sh ip bgp sum
BGP router identifier 12.1.1.2, local AS number 200
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
12.1.1.1            4   100       2              2                0           0    0            00:02:31   Active

R1(config)#
R1(config)#router bgp 100

R1(config-router)#no neighbor 12.1.1.2 shutdown

R1(config-router)#
*Mar  1 00:09:13.447: BGP: 12.1.1.2 went from Idle to Active
*Mar  1 00:09:13.455: BGP: 12.1.1.2 open active, local address 12.1.1.1
*Mar  1 00:09:13.483: BGP: 12.1.1.2 went from Active to OpenSent
*Mar  1 00:09:13.483: BGP: 12.1.1.2 sending OPEN, version 4, my as: 100, holdtime 180 seconds
*Mar  1 00:09:13.487: BGP: 12.1.1.2 send message type 1, length (incl. header) 45
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcv message type 1, length (excl. header) 26
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcv OPEN, version 4, holdtime 180 seconds
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcv OPEN w/ OPTION parameter len: 16
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcvd OPEN w/ optional parameter type 2 (Capability) len 6
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has CAPABILITY code: 1, length 4
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has MP_EXT CAP for afi/safi: 1/1
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has CAPABILITY code: 128, length 0
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has ROUTE-REFRESH capability(old) for all address-families
*Mar  1 00:09:13.503: BGP: 12.1.1.2 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has CAPABILITY code: 2, length 0
*Mar  1 00:09:13.503: BGP: 12.1.1.2 OPEN has ROUTE-REFRESH capability(new) for all address-families
BGP: 12.1.1.2 rcvd OPEN w/ remote AS 200
*Mar  1 00:09:13.503: BGP: 12.1.1.2 went from OpenSent to OpenConfirm
*Mar  1 00:09:13.503: BGP: 12.1.1.2 went from OpenConfirm to Established
*Mar  1 00:09:13.503: %BGP-5-ADJCHANGE: neighbor 12.1.1.2 Up
R1(config-router)#
R1(config-router)#^Z
R1#
*Mar  1 00:09:17.011: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip bgp sum
BGP router identifier 12.1.1.1, local AS number 100
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
12.1.1.2            4   200       6                6        1             0  0               00:00:08        0


Thanks for reading !!!!










No comments:

Post a Comment