bgp troubleshooting issue
One Peer down
root@R2> show bgp summary
Groups: 1 Peers: 1 Down peers: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
11.11.11.11 65100 0 20 0 0 41:02 Active
No local AS specify
root@R2> show bgp neighbor
Peer: 11.11.11.11 AS 65100 Local: unspecified AS 65100
Type: Internal State: Active Flags: <>
Last State: Idle Last Event: Start
Last Error: None
Export: [ injectpolicy1 ]
Options: <Preference Refresh>
Holdtime: 90 Preference: 170
Number of flaps: 0
local AS specify
root@R2> show bgp neighbor
Peer: 11.11.11.11 AS 65100 Local: unspecified AS 65100
Type: Internal State: Active Flags: <ImportEval>
Last State: Idle Last Event: Start
Last Error: None
Export: [ injectpolicy1 ]
Options: <Preference LocalAS Refresh>
Holdtime: 90 Preference: 170 Local AS: 65100 Local System AS: 65100
Number of flaps: 0
local address specify on the remote BGP speaker
root@R2> show log bgp-trace
Oct 8 11:16:34 trace_on: Tracing to "/var/log/bgp-trace" started
Oct 8 11:17:18.913335 bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.11.13.11+62069Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # was using the wrong AS number
Oct 8 11:18:37.687837 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state Active event ConnectRetry new state Connect
Oct 8 11:18:37.690609 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state Connect event Open new state OpenSent
Oct 8 11:18:37.690635 advertising graceful restart receiving-speaker-only capability to neighbor 11.11.11.11 (Internal AS 65100)
Oct 8 11:18:37.691560 bgp_recv: peer 11.11.11.11 (Internal AS 65100): received unexpected EOF
Oct 8 11:18:37.691582 bgp_peer_close: closing peer 11.11.11.11 (Internal AS 65100), state is 4 (OpenSent)
Oct 8 11:18:37.691816 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state OpenSent event TransportError new state Idle
Oct 8 11:18:37.691893 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state Idle event Start new state Active
After the change
Oct 8 11:24:54.507965 advertising graceful restart receiving-speaker-only capability to neighbor 11.11.11.11 (Internal AS 65100)
Oct 8 11:24:54.508045 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state OpenSent event RecvOpen new state OpenConfirm
Oct 8 11:24:54.508399 bgp_event: peer 11.11.11.11 (Internal AS 65100) old state OpenConfirm event RecvKeepAlive new state Established
After the change
root@R2> show bgp neighbor
Peer: 11.11.11.11+55633 AS 65100 Local: 12.12.12.12+179 AS 65100
Type: Internal State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ injectpolicy1 ]
Options: <Preference LocalAS Refresh>
Holdtime: 90 Preference: 170 Local AS: 65100 Local System AS: 65100
Number of flaps: 0
Peer ID: 11.11.11.11 Local ID: 12.12.12.12 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
BFD: disabled, down
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Stale routes from peer are kept for: 300
Peer does not support Restarter functionality
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer supports 4 byte AS extension (peer-as 65100)
Peer does not support Addpath
Table inet.0 Bit: 10000
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 1
Accepted prefixes: 1
Suppressed due to damping: 0
Advertised prefixes: 5
Last traffic (seconds): Received 2 Sent 23 Checked 80
Input messages: Total 7 Updates 2 Refreshes 0 Octets 203
Output messages: Total 6 Updates 1 Refreshes 0 Octets 223
Output Queue[0]: 0
After the change
root@R2> show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 1 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
11.11.11.11 65100 21 20 0 0 7:39 0/1/1/0 0/0/0/0