OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Show Commands : show bgp neighbors routes
show bgp neighbors routes
Use this command to display all accepted routes learned from neighbors.
Command Syntax
show bgp neighbors (A.B.C.D|X:X::X:X) routes
show ip bgp neighbors (A.B.C.D|X:X::X:X) routes
show ip bgp ipv4 (unicast|multicast) neighbors (A.B.C.D|X:X::X:X) routes
Parameters
A.B.C.D
IPv4 address
X:X::X:X
IPv6 address
ipv4
IPv4 addresses
unicast
Unicast prefixes
multicast
Multicast prefixes
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following output displays detailed information about the neighbor.
#show bgp neighbors 10.10.10.2 routes
BGP neighbor is fe80::203:47ff:feb0:d72b, remote AS 10, local AS 10, internal link
BGP version 4, remote router ID 10.10.10.50
BGP state = Established, up for 00:02:01
Last read 00:00:01, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv6 Unicast: advertised and received
Received 3 messages, 0 notifications, 0 in queue
Sent 5 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
Community attribute sent to this neighbor (both)
0 accepted prefixes
0 announced prefixes
 
 
 
 
 
Table 7-19 explains the output fields.
 
Table 7-19: show bgp neighbors routes output details
Field
Description
BGP neighbor
Neighbor identifier along with the local and remote Autonomous System numbers.
BGP version
The version of BGP being used by the neighbor device, along with the remote router ID number.
BGP state
The current state of the neighbor connection and length of time within the current state.
Possible states are: Idle, Connect, Active, and Established.
Last read
The amount of time in Hours: Minutes: Seconds since this device last checked the Hold Time parameters.
hold time
The amount of time this device waits for a Keepalive or Update message before the BGP connection is closed.
Keepalive interval
KEEPALIVE messages are sent periodically to ensure that the connection is live.
Neighbor capabilities
New or optional parameters called “Capabilities.” Provides a graceful way to advertise new or unique options without causing peering to terminate. The capabilities are communicated in TLV fields. (see RFC 3392).
 
In the example output above, the following capabilities were advertised by the neighbor and were received and understood by this device:
1. Route refresh
2. Address family IPv4 Unicast
3. Address family IPv6 Unicast
Route refresh
This helps to identify that and synchronize the peers without a hard reset.
For address family
Address Family Identifier (AFI) IPv4 Unicast.
Received messages
Information received from the neighbors.
notifications
Passes information to a router about sessions.
in que
Number of messages currently residing in the queue awaiting action.
Route refresh request
Information received and sent.
Minimum time between advertisement runs
Interval between exchange of messages.
For address family: IPv4 Unicast
The following three values are subordinate to the IPv4 Unicast Address Family.
Community attributes sent to this neighbor
Both the standard and the extended community information has been sent to the neighbor.
accepted prefixes
Configure a limit to the number of prefixes that can be accepted in a BGP peer session.
announced prefixes
A prefix announced in BGP consists of the IPV4 or IPV6 address block being announced.
 
Last modified date: 10/16/2023