To view the route table for a specified neighbor, enter the following command.
device# show ip bgp vpnv4 neighbors 10.10.2.3 routes
There are 30 accepted routes from neighbor 10.10.2.3
Searching for matching routes, use ^C to quit...
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED F:FILTERED
Prefix Next Hop Metric LocPrf Weight Status
1 10.100.100.1/32 10.10.2.3 100 0 BE
AS_PATH: 310
2 10.100.100.2/32 10.10.2.3 100 0 BE
AS_PATH: 310
3 10.100.100.3/32 10.10.2.3 100 0 BE
AS_PATH: 310
4 10.100.100.4/32 10.10.2.3 100 0 BE
AS_PATH: 310
5 10.100.100.5/32 10.10.2.3 100 0 BE
AS_PATH: 310
6 10.100.100.6/32 10.10.2.3 100 0 BE
AS_PATH: 310
7 10.100.100.7/32 10.10.2.3 100 0 BE
AS_PATH: 310
8 10.100.100.8/32 10.10.2.3 100 0 BE
AS_PATH: 310
9 10.100.100.9/32 10.10.2.3 100 0 BE
AS_PATH: 310
Syntax: show ip bgp vpnv4 neighbors ip-addr routes
For information about the fields in this display, see the following table.
This field... |
Displays... |
---|---|
Total number of BGP VPNv4 Routes: |
The number of BGP VPNv4 routes. |
Status or Status Codes |
The route‘s status, which can be one or more of the following:
Note: When the "b" is shown in lowercase, the software was not able to install the route in the IP route table.
Note: When the "m" is shown in lowercase, the software was not able to install the route in the IP route table.
Note: This field appears only when the user enters the
route option.
|
Origin code |
A character the display uses to indicate the route‘s origin. The origin code appears to the right of the AS path (Path field). The origin codes are described in the command‘s output. |
Route Distinguisher |
A unique ID that is prepended on any address being routed or advertised from a VRF. The RD can be defined as either ASN-relative or IP address-relative as described:
|
Network |
IP address or mask of the destination network of the route. |
Next Hop |
The next-hop device for reaching the network from this device. |
Metric |
The value of the route‘s MED attribute. When the route does not have a metric, this field is blank. |
LocPrf |
The degree of preference for this route relative to other routes in the local AS. When the BGP4 algorithm compares route on the basis of local preference, the route with the higher local preference is chosen. The preference can have a value from 0-4294967295 |
Weight |
The value that this route associates with routes from a specific neighbor. For example, when the device receives routes to the same destination from two BGP4 neighbors, the device prefers the route from the neighbor with the larger weight. |
Path |
The AS path of the route. |
To display the routes received from a specific neighbor that are the "best" routes to their destinations, enter a command such as the following at any level of the CLI.
device# show ip bgp vpnv4 neighbor 192.168.4.211 routes best
Syntax: show ip bgp vpnv4 neighbor ip-addr routes best
To display the BGP4 routes received from a specific neighbor that are the "best" routes to their destinations but are not installed in the device‘s IP route table, enter a command such as the following at any level of the CLI.
device# show ip bgp vpnv4 neighbor 192.168.4.211 routes not-installed-best
Each of the displayed routes is a valid path to its destination, but the device received another path from a different source (such as OSPF, RIP, or a static route) that has a lower administrative distance. The device always selects the path with the lowest administrative distance to install in the IP route table.
Syntax: show ip bgp vpnv4 neighbor ip-addr routes not-installed-best
To display BGP4 routes whose destinations are unreachable using any of the BGP4 paths in the BGP4 route table, enter a command such as the following at any level of the CLI.
device# show ip bgp vpnv4 neighbor 192.168.4.211 routes unreachable
Syntax: show ip bgp vpnv4 neighbor ip-addr routes unreachable
To display the device‘s current BGP4 Routing Information Base (Adj-RIB-Out) for a specific VRF neighbor and a specific destination network, enter a command such as the following at any level of the CLI.
device# show ip bgp vpnv4 neighbor 10.10.2.3 rib-out-routes
There are 154 RIB_out routes for neighbor 10.10.2.3
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST E:EBGP I:IBGP L:LOCAL
Prefix Next Hop Metric LocPrf Weight Status
1 10.100.101.30/32 10.10.3.3 100 0 BE
AS_PATH: 311
2 10.100.101.29/32 10.10.3.3 100 0 BE
AS_PATH: 311
3 10.100.101.28/32 10.10.3.3 100 0 BE
AS_PATH: 311
4 10.100.101.27/32 10.10.3.3 100 0 BE
AS_PATH: 311
5 10.100.101.26/32 10.10.3.3 100 0 BE
AS_PATH: 311
6 10.100.101.25/32 10.10.3.3 100 0 BE
AS_PATH: 311
7 10.100.101.24/32 10.10.3.3 100 0 BE
AS_PATH: 311
8 10.100.101.23/32 10.10.3.3 100 0 BE
AS_PATH: 311
9 10.100.101.22/32 10.10.3.3 100 0 BE
AS_PATH: 311
10 10.100.101.21/32 10.10.3.3 100 0 BE
AS_PATH: 311
The Adj-RIB-Out contains the routes that the device either has most recently sent to the VRF neighbor or is about to send to the neighbor.
Syntax: show ip bgp vpnv4 neighbor ip-addr rib-out-routes [ ip-addr/prefix ]