Displaying a specified neighbor VPNv4/VPNv6 routes

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.

Table 1. BGP4 VPNv4/VPNv6 neighbors information

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:

  • A - AGGREGATE. The route is an aggregate route for multiple networks.
  • B - BEST. BGP4 has determined that this is the optimal route to the destination.
Note: When the "b" is shown in lowercase, the software was not able to install the route in the IP route table.
  • b - NOT-INSTALLED-BEST. The routes received from the neighbor are the best BGP4 routes to their destinations, but were nonetheless not installed in the IP route table due to the rib-route-limit (or RTM route table size limit) and always-propagate option to allow the propagating those best BGP routes.
  • C - CONFED_EBGP. The route was learned from a neighbor in the same confederation and AS, but in a different sub-AS within the confederation.
  • D - DAMPED. This route has been dampened (by the route dampening feature), and is currently unusable.
  • H - HISTORY. Route dampening is configured for this route, and the route has a history of flapping and is unreachable now.
  • I - INTERNAL. The route was learned through BGP4.
  • L - LOCAL. The route originated on this device.
  • M - MULTIPATH. BGP4 load sharing is enabled and this route was selected as one of the best ones to the destination. The best route among the multiple paths also is marked with "B".
Note: When the "m" is shown in lowercase, the software was not able to install the route in the IP route table.
  • S - SUPPRESSED. This route was suppressed during aggregation and thus is not advertised to neighbors.
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:

  • ASN-relative - Composed of the local ASN number followed by a ":" and a unique arbitrary number. For example: 3:6
  • IP address-relative - Composed of the local IP address followed by a ":" and a unique arbitrary number.

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.

Displaying the best routes

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

Displaying the best routes that were nonetheless not installed in the IP route table

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

Displaying the routes whose destinations are unreachable

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

Displaying the Adj-RIB-Out for a VRF neighbor

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 ]