show ip bgp vpn vrf

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

Syntax

show ip bgp vpn vrf vrf-name [labels] [peer ip-addr {received-routes | advertised-routes}] [prefix/length [longer-prefixes] [detail]]

Parameters

vrf-name Displays the named VRF.
labels (Optional) Displays incoming and outgoing BGP labels for each prefix in the routing table.
peer ip-addr (Optional) Specifies the IPv4 peer route information to 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
ip-prefix/mask (Optional) Specifies an IP prefix and mask for BGP route display.
longer-prefixes (Optional) Specifies that only routes matching the specified IP address or IP prefix/length 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
  • Flap related counters

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.

Example

The following example displays all BGP VPN routes for VRF Nike.

System(rw)->show ip bgp vpn vrf Nike
Route status codes: > - active
    Network                  Next Hop              Rib MED Local-Pref Origin Weight        AS Path
Route Distinguisher: 192.16.168.12:1  (default for vrf Nike)
>   140.128.12.0/24          192.17.170.10         U   2      100     IGP    0
>   140.128.13.0/27          192.17.170.10         U   12     100     IGP    0
>   140.128.13.32/27         192.17.170.10         U   12     100     IGP    0
>   140.128.13.64/27         192.17.170.10         U   12     100     IGP    0
>   140.128.13.96/27         192.17.170.10         U   12     100     IGP    0
>   140.128.13.128/27        192.17.170.10         U   2      100     IGP    0
>   140.128.13.160/27        192.17.170.10         U   2      100     IGP    0
>   140.128.13.192/27        192.17.170.10         U   2      100     IGP    0
>   140.128.13.224/27        192.17.170.10         U   2      100     IGP    0
>   192.16.168.13/32         192.17.170.10         U   21     100     IGP    0
>   192.16.168.112/29        192.17.170.10         U   11     100     IGP    0
System(rw)->

The following example displays BGP VPN route labels for VRF vpnA:

System(rw)->show ip bgp vpn vrf vpnA labels
Route status codes: > - active
    Network                  Next Hop              In Label/Out Label
Route Distinguisher: 1:52  (default for vrf vpnA)
>   1.0.0.3/32               1.0.0.1                16/No Label
>   1.0.0.5/32               1.0.0.1                16/No Label
>   10.0.0.0/8               1.0.0.1                16/No Label
>   52.1.0.0/24              1.0.0.1                16/No Label
>   53.2.1.0/24              1.0.0.1                16/No Label
>   134.141.0.0/16           1.0.0.1                16/No Label
>   172.1.1.0/24             1.0.0.1                16/No Label
>   172.1.2.0/24             1.0.0.1                16/No Label
>   172.1.3.0/24             1.0.0.1                16/No Label
...
System(rw)->

The following example displays a detailed level of information for IPv4 BGP VPN VRF vpnA route 53.2.1.0/24:

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

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

..

Click to expand in new window

show ip bgp vpn vrf 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.
In Label/Out Label Incoming and outgoing BGP labels for the specified network and next hop.
Community attributes in route Specifies any community attributes for this route.
Extended Community attributes in route Specifies any extended community attributes for this route.
Route Flap Dampening configuration file name Specifies the name of the route flap dampening configuration file or “None” if no file exists.