Reset Search
 

 

Article

How To Check the State of a BGP Peer on the S-Series

« Go Back

Information

 
TitleHow To Check the State of a BGP Peer on the S-Series
Objective
how to checkthe state of a BGP Peer. The following output shows a peer who has a current state of Active which means the peer will not exchange routes. A current state of Established means the BGP peer is able to send and receive advertised routes. Use the Error Code and Error sub-code to find more information about why a peer will not change to an Established state
Environment
S-Series
Procedure
1. Check the state of the peer
Router (su)->show ip bgp neighbor
BGP neighbor is: 203.0.113.85, remote AS: 7922
BGP version is: 4, remote router ID: 192.168.28.102
TTL: 1
Hold Time: 90 (sec), Keepalive Time: 30 (sec)
Advertised Restart Time: 120 (sec), Restarting: No
Restart Status: NotRestarting, Time remaining in restart state: 0
Current state is: ACTIVE
Updates received: 3568, Updates sent: 36
Total messages received: 3677, Total messages sent: 160
Last error code was: 6
Last error sub-code was: 2
BGP Instance Local AS is: 1234
BGP Peer selected local AS is: 0
Local router ID is: 10.10.254.254
Established Time: 0,00:36:07 (days,hr:min:sec)
Number of transitions to/from established state is: 3
Soft reset with stored info is: Enabled
Automatic sending of route-refresh messages is: Enabled
Router confederation AS is: 0
Peer is in Router's Confederation? No
Route Reflector ID is: 0.0.0.0
Peer is Route Reflector Client? Non-Client
Max allowed instances of local AS in AS-PATH of rcv updates:0
Sender side loop detection is: Enabled
Negotiated Capabilities:
Multiprotocol ipv4 unicast: Received: No Negotiated: No
Multiprotocol ipv4 multicast: Received: No Negotiated: No
Multiprotocol ipv4 vpn: Received: No Negotiated: No
Multiprotocol ipv6 unicast: Received: No Negotiated: No
Multiprotocol ipv6 multicast: Received: No Negotiated: No
Multiprotocol ipv6 vpn: Received: No Negotiated: No
Route Refresh: Received: No Negotiated: No
Graceful Restart: Received: No Negotiated: No
Outbound Route Filtering: Received: No Negotiated: No

4 Octet AS number: Received: No Negotiated: No

2.  If Established type the following to check the routes advertised to the peer

Router 1(su)->show ip bgp peer 203.0.113.85 advertised-routes

Route status codes: adv - advertised, sup - suppressed, pw - pending w/drawal, wd - w/drawn
Route aggregation codes:
1 - Route is not aggregating or aggregated
2 - Route is aggregating
3 - Route is unsuppressed aggregated
4 - Route is suppressed aggregated

Stat Aggr    Network                  Next Hop        Rib MED Local-Pref Origin AS Path
adv  1       10.100.0.0/24            203.0.113.86    U   0      0      IGP     1234

adv  1       10.100.5.0/24            203.0.113.86    U   0      0      IGP     1234

3.  Check the routes advertise by the peer

show ip bgp peer 203.0.113.86 received-routes

(output  intentionally omitted)

Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255