show bgp neighbors
To view BGP neighbors status, use the following command
show bgp-neighbors neighbor-details
show bgp-neighbors ip ip_address neighbor-details
Example
The following is a list of few configuration examples:
show bgp-neighbors neighbor-details
-----example-bgp-ep-1 ----
Peer AS Up/Down State |#Received Accepted
209.165.202.142 60000 00:25:06 Establ | 3 3
-----example-bgp-ep-2 ----
Peer AS Up/Down State |#Received Accepted
209.165.202.142 60000 never Idle | 0 0
show bgp-neighbors ip 209.165.202.142 neighbor-details
-----example-bgp-ep-2 ----
BGP neighbor is 209.165.202.142, remote AS 60000
BGP version 4, remote router ID unknown
BGP state = ACTIVE
BGP OutQ = 0, Flops = 0
Hold time is 0, keepalive interval is 0 seconds
Configured hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
multiprotocol:
ipv4-unicast: advertised
route-refresh: advertised
extended-nexthop: advertised
Local: nlri: ipv4-unicast, nexthop: ipv6
4-octet-as: advertised
Message statistics:
Sent Rcvd
Opens: 130 0
Notifications: 0 0
Updates: 0 0
Keepalives: 0 0
Route Refresh: 0 0
Discarded: 0 0
Total: 130 0
Route statistics:
Advertised: 0
Received: 0
Accepted: 0
-----example-bgp-ep-1 ----
BGP neighbor is 209.165.202.142, remote AS 60000
BGP version 4, remote router ID 209.165.202.136
BGP state = ESTABLISHED, up for 00:25:20
BGP OutQ = 0, Flops = 0
Hold time is 90, keepalive interval is 30 seconds
Configured hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
multiprotocol:
ipv4-unicast: advertised and received
route-refresh: advertised and received
extended-nexthop: advertised
Local: nlri: ipv4-unicast, nexthop: ipv6
4-octet-as: advertised and received
Message statistics:
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 1
Keepalives: 51 51
Route Refresh: 0 0
Discarded: 0 0
Total: 53 53
Route statistics:
Advertised: 0
Received: 3
Accepted: 3