We can see the bgp states with 'debug ip bgp events' command.
*Mar 1 01:48:40.675: BGP: 10.1.12.1 went from Idle to Active
*Mar 1 01:48:40.675: BGP: 10.1.12.1 went from Idle to Active
*Mar 1 00:50:27.127: BGP: 10.1.12.1 open active, local address 10.1.12.2
*Mar 1 00:50:27.155: BGP: 10.1.12.1 went from Active to OpenSent
*Mar 1 00:50:27.155: BGP: 10.1.12.1 sending OPEN, version 4, my as: 200, holdtime 180 seconds
*Mar 1 00:50:27.159: BGP: 10.1.12.1 send message type 1, length (incl. header) 45
*Mar 1 00:50:27.187: BGP: 10.1.12.1 rcv message type 1, length (excl. header) 26
*Mar 1 00:50:27.187: BGP: 10.1.12.1 rcv OPEN, version 4, holdtime 180 seconds
*Mar 1 00:50:27.191: BGP: 10.1.12.1 rcv OPEN w/ OPTION parameter len: 16
*Mar 1 00:50:27.191: BGP: 10.1.12.1 rcvd OPEN w/ optional parameter type 2 (Capability) len 6
*Mar 1 00:50:27.191: BGP: 10.1.12.1 OPEN has CAPABILITY code: 1, length 4
*Mar 1 00:50:27.191: BGP: 10.1.12.1 OPEN has MP_EXT CAP for afi/safi: 1/1
*Mar 1 00:50:27.191: BGP: 10.1.12.1 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Mar 1 00:50:27.195: BGP: 10.1.12.1 OPEN has CAPABILITY code: 128, length 0
*Mar 1 00:50:27.195: BGP: 10.1.12.1 OPEN has ROUTE-REFRESH capability(old) for all address-families
*Mar 1 00:50:27.195: BGP: 10.1.12.1 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Mar 1 00:50:27.195: BGP: 10.1.12.1 OPEN has CAPABILITY code: 2, length 0
*Mar 1 00:50:27.195: BGP: 10.1.12.1 OPEN has ROUTE-REFRESH capability(new) for all address-families
BGP: 10.1.12.1 rcvd OPEN w/ remote AS 200
*Mar 1 00:50:27.195: BGP: 10.1.12.1 went from OpenSent to OpenConfirm
*Mar 1 00:50:27.195: BGP: 10.1.12.1 went from OpenConfirm to Established
*Mar 1 00:50:27.195: %BGP-5-ADJCHANGE: neighbor 10.1.12.1 Up
Comments
Post a Comment