Displaying VPNv4/VPNv6 route information

The user can display route information about VPNv4/VPNv6 routes by entering the following command at any level of the CLI.

        device# show ip bgp vpnv4 routes
Total number of BGP Routes: 4
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
       Prefix             Next Hop        MED        LocPrf     Weight Status
Route Distinguisher: 1:1
1      200.2.0.0/24       1.1.1.1          none      100        0      bI
         AS_PATH: 70
2      200.2.1.0/24       1.1.1.1          none      100        0      bI
         AS_PATH: 70
Route Distinguisher: 1:2
3      200.3.0.0/24       1.1.1.1          none      100        0      bI
         AS_PATH: 71
4      200.3.1.0/24       1.1.1.1          none      100        0      bI
         AS_PATH: 71

This display shows the following information.

Table 1. BGP4 summary 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 routes AS path.

To clear the VPNv4 routing table, the user must enter the following commands.

        device# clear ip bgp vpnv4 neighbor all soft out
device# clear ip bgp vpnv4 neighbor all soft in

Syntax: clear ip bgp vpnv4 { dampening | flap-statistics | neighbor }

The dampening parameter clears route flap dampening information.

The flap-statistics parameter clears route flap statistics.

The neighbor parameter clears BGP neighbors.