OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Show Commands : show bgp neighbors received-routes
show bgp neighbors received-routes
Use this command to view all the received routes, including all AFI/SAFI routes, from a BGP neighbour.
Executing this CLI displays the received routes from accessing:
BGP local RIB or
BGP ADJ_IN RIB only if the 'soft-reconfiguration inbound' feature is supported.
Command Syntax
show ip bgp neighbors (A.B.C.D|X:X::X:X) received-routes (vrf (VRFNAME|all|default)|)
show ip bgp ipv4 (unicast|multicast) neighbors (A.B.C.D|X:X::X:X) received-routes
Parameters
A.B.C.D
IPv4 address
X:X::X:X
IPv6 address
ipv4
IPv4 addresses
unicast
Unicast prefixes
multicast
Multicast prefixes
VRFNAME
VPN Routing/Forwarding instance name
all
 
All VRFs
deault
Default VRF (Global routing)
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3. and updated in OcNOS version 6.3.1.
Example
 
DUT3 show bgp neighbors 77.242.226.32 received-routes
% Inbound soft reconfiguration is not supported, displaying the received routes from accessing BGP local RIB
For address family: IPv4 Unicast
BGP table version is 610, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - internal,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i 20.20.20.0/24 77.242.226.32 0 100 0 ?
*>i 77.242.226.32/32 77.242.226.32 0 100 0 ?
*>i 200.10.1.0 77.242.226.32 0 100 0 ?
Total number of prefixes 3
For address family: VPNv4 Unicast
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - internal, l - labeled
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 77.242.226.32:100
*>i 200.10.1.0 77.242.226.32 0 100 0 ?
Accepted routes count = 1
Route Distinguisher: 65535:22
*>i 10.50.100.160/30 10.10.40.133 0 100 0 ?
*>i 10.202.167.0/24 10.10.40.133 0 100 0 ?
Accepted routes count = 2
DUT#
DUT#sh bgp neighbors 10.10.40.133 received-routes | begin VPNv4
...skipping
For address family: VPNv4 Unicast
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - internal, l - labeled
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 65535:22
*>i 10.50.100.160/30 10.10.40.133 0 100 0 ?
*>i 10.202.167.0/24 10.10.40.133 0 100 0 ?
Accepted routes count = 2
To view the received-routes of particular address-family, use below filter.
“sh bgp neighbors 10.10.40.133 received-routes | begin LINE”
LINE can be of { IPv4 Unicast or
IPv4 Labeled-Unicast or
VPNv4 Unicast or
IPv6 Unicast or
6PE Labeled Unicast or
VPNv6 Unicast
}
Last modified date: 10/16/2023