show ip bgp vpn

This command displays information about IPv4 VPN BGP routes installed in the BGP routing information base (RIB).

Syntax

show ip bgp vpn {all | rd {asn:num | ipv4Addr:num}} [labels] [peer ip-addr] {received-routes | advertised-routes}] [prefix/length [longer-prefixes] [detail]]

Parameters

all Display all BGP VPN BGP routing table information.
rd asn:num | ipv4Addr:num Display BGP VPN BGP routing table information for the specified route distinguisher.
labels (Optional) Displays incoming and outgoing BGP labels for each prefix in the routing table.
peer ip-addr (Optional) Specifies the IPv4 peer for route information display.
received-routes Displays received routes from the peer after import policies are applied matching prefix and mask (local-rib).
advertised-routes Displays all routes advertised to the peer after export policies have been applied that match a prefix and mask (rib-out).
prefix/length Displays specified BGP route destination.
longer-prefixes (Optional) Specifies that only routes exactly matching the specified IP address will display.
detail (Optional) Displays a detailed level of information including:
  • Route community attributes
  • Route Extended Community attributes
  • Route Target
  • Route Flap Dampening table name

Defaults

  • If the label option is not specified, incoming and outgoing BGP labels are not displayed.
  • If a peer IP address, route, or the longer prefix option is not specified, information is displayed for all peers and routes.
  • If detail is not specified, a standard level of route information displays.

Mode

All command modes.

Usage

To display IPv4 VPN BGP routing table information for a specific VRF see show ip bgp vpn vrf.

Example

The following example displays IPv4 BGP VPN information for all BGP VPN routes installed in the BGP RIB.

System(rw)->show ip bgp vpn all
Route status codes: > - active
    Network                  Next Hop              Rib MED Local-Pref Origin AS Path
Route Distinguisher: 1:3  (default for vrf vpnC)
>   1.0.0.12/32              1.0.0.1               U   0      100    IGP
>   1.0.0.13/32              1.0.0.1               U   0      100    IGP
>   1.0.0.37/32              1.0.0.33              U   0      100    IGP
>   1.0.0.38/32              1.0.0.33              U   0      100    IGP
>   10.0.0.0/8               1.0.0.1               U   0      100    IGP     2
>   10.1.128.0/17            1.0.0.1               U   0      100    IGP     2
...
Route Distinguisher: 1:4  (default for vrf vpnD)
>   1.0.0.15/32              1.0.0.1               U   0      100    IGP
>   1.0.0.36/32              1.0.0.33              U   0      100    IGP
    52.7.0.0/24              1.0.0.33              U   0      100    IGP     4
...
System(rw)->

The following example displays BGP VPN routes for route distinguisher 1:3:

System(rw)->show ip bgp vpn rd 1:3
Route status codes: > - active
    Network                  Next Hop              Rib MED Local-Pref Origin AS Path
Route Distinguisher: 1:3  (default for vrf vpnC)
>   1.0.0.12/32              1.0.0.1               U   0      100    IGP
>   1.0.0.13/32              1.0.0.1               U   0      100    IGP
>   10.0.0.0/8               1.0.0.1               U   0      100    IGP     2
>   10.1.128.0/17            1.0.0.1               U   0      100    IGP     2
>   52.5.0.0/24              1.0.0.1               U   0      100    IGP
>   134.141.0.0/16           1.0.0.1               U   0      100    IGP     2
>   172.5.1.0/24             1.0.0.1               U   0      100    IGP     2
>   172.5.4.0/24             1.0.0.1               U   0      100    IGP     2
>   192.168.61.0/24          1.0.0.1               U   0      100    IGP     2
>   199.0.0.0/24             1.0.0.1               U   0      100    IGP     2
System(rw)->

The following example displays a detail level of information for the prefix 172.1.1.0/24 BGP VPN route for route distinguisher 1:55:

System(rw)->show ip bgp vpn rd 1:55 172.1.1.0/24 detail
Route status codes: > - active
    Network                  Next Hop              Rib MED Local-Pref Origin AS Path
Route Distinguisher: 1:55  (default for vrf vpnB)
>   172.1.1.0/24             1.0.0.1               U   0      100    IGP
Community attributes in route:
Extended Community attributes in route:
Route Target: 1:55 (0x0002000100000037)
Route Target: 2:10 (0x000200020000000A)
Route Flap Dampening configuration file name: None

show ip bgp vpn Output Details table describes the fields that appear in the show ip bgp vpn query.

.

Click to expand in new window

show ip bgp vpn Output Details

Output... What it displays...
Route status codes A greater than symbol “>” specifies the active or used route. If no symbol displays, the route is not being used for the displayed context.
Network Specifies the network this route is on.
Next Hop Specifies the IP address of the nearest gateway used to reach the EBGP peer
Rib Specifies whether the route is installed in the unicast or multicast RIB
MED Specifies the MED value for the route.
Local-Pref Specifies the Local Preference value for the route.
Origin Specifies whether the origin of the route is an internal or external protocol.
AS Path Specifies the route‘s AS Path.
Route Distinguisher Specifies the route distinguisher associated with the next series of routes.
Community attributes in route Specifies any BGP community attributes for the specified route.
Extended Community attributes in route Specifies any BGP extended community attributes for the specified route.
Route Flap Dampening configuration file name Specifies if there is a route flap dampening configuration file associated with the specified route.