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.
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 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.