show bgp vpn unicast

Syntax

show bgp [vrf <VRF-NAME>][{ipv4 unicast | ipv6 unicast| ipv4 unicast| all unicast}] [vsx-peer]

Description

Shows the BGP-VPN per VRF routes with additional route information like RD and extended community route targets.

Command context

Operator (>)

Parameters

Displays the BGP neighbor information for the specified VR.F

NOTE:

By default the default_vrf BGP instance information is displayed if the VRF is not specified.

unicast

Selects the subaddress family identifier

all

Displays VPNv4 address family routes for all VRFs

vrf

Displays VPNv4 address-family routes for specified VRF

vpn-addr-family

Required: Literal Select the VPNv4 or VPNv6 address family

vrf-name

Required: Literal or string. Specify all or vrf-name.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Required use of vpn-addr-family:

switch# show bgp <vpn-addr-family> unicast {all | [vrf <vrf-name> | A.B.C.D/M}

Show BGP VRF ipv4 unicast routes for vrf-name

switch# show bgp vrf Red ipv4 unicast
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
  VRF: Red
  Local Router-ID 172.16.3.1
		
  Network           Nexthop       Metric  LocPrf  Weight Path
  Route Distinguisher: 65000:1
  *> 172.16.0.0/24  0.0.0.0       0       100     32768      ?
  *> 172.16.1.0/24  0.0.0.0       0       100     32768      ?
  *> 172.16.2.0/24  172.16.0.2    0       100     32768      ?
  *> 172.16.3.0/24  172.16.0.3    0       100     32768      ?

  Total number of entries 4
		
switch# show bgp vrf Green ipv4 unicast
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
		VRF: Green
  Local Router-ID 172.17.2.1

  Network           Nexthop       Metric  LocPrf  Weight Path
  Route Distinguisher: 65000:2
  *> 172.17.0.0/24  0.0.0.0       0       100     32768      ?
  *> 172.17.1.0/30  0.0.0.0       0       100     32768      ?
  *> 172.17.2.0/24  172.17.0.2    0       100     32768      ?

  Total number of entries 3
		
switch# show bgp vrf Blue ipv4 unicast
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
  VRF: Blue
  Local Router-ID 172.18.3.1

		Network           Nexthop       Metric  LocPrf  Weight Path
  Route Distinguisher: 65000:3
  *> 172.18.0.0/24  0.0.0.0       0       100     32768      ?
  *> 172.18.1.0/30  0.0.0.0       0       100     32768      ?
  *> 172.18.3.0/24  172.18.0.3    0       100     32768      ?

  Total number of entries 3
		
switch# show bgp vrf Shared ipv4 unicast
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
  VRF: Shared
  Local Router-ID 192.168.99.1
		 
		Network             Nexthop       Metric  LocPrf  Weight Path
  Route Distinguisher: 65000:99
  *> 192.168.99.0/24  0.0.0.0       0       100     32768      ?

  Total number of entries 1
		

Show BGP VRF ipv6 unicast routes for vrf-name:

switch# show bgp vrf Red ipv6 unicast
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
  VRF: Red
  Local Router-ID 172.16.3.1
		
  Network           Nexthop       Metric  LocPrf  Weight Path
  Route Distinguisher: 65000:1
  *  2001:100:1:1000:/56
         2001:100:1:1000::72a     0       0       200      ?
  *> 2001:100:1:1000::/56
           ::                     0       100     32768    ?
  *  2001:100:1:2000::/56
         ::FFFF:200.10.10.1 0     0       100     32768    ?

  Total number of entries 3
		

Show BGP VRF routes for all vrfs and all address-families:

switch# show bgp all-vrf all
		 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath
		 i internal, e external, S Stale, R Removed
		 Origin codes: i - IGP, e - EGP, ? - incomplete
		 
  VRF: Blue
  Local Router-ID 172.18.3.1

  Address-family: IPv4 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  *> 172.18.0.0/24  0.0.0.0       0       100     32768    ?
  *> 172.18.1.0/30  0.0.0.0       0       100     32768    ?
  *> 172.18.3.0/24  172.18.0.3    0       100     32768    ?

  Total number of entries 3

  Address-family: IPv6 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  
  Toatl number of entries 0

  VRF: Green
  Local Router-ID 172.17.2.1

  Address-family: IPv4 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  *> 172.17.0.0/24  0.0.0.0       0       100     32768    ?
  *> 172.17.1.0/30  0.0.0.0       0       100     32768    ?
  *> 172.17.2.0/24  172.17.0.2    0       100     32768    ?

  Total number of entries 3

  Address-family: IPv6 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  
  Total number of entries 0

  VRF: Red
  Local Router-ID 172.16.3.1

  Address-family: IPv4 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  *> 172.16.0.0/24  0.0.0.0       0       100     32768    ?
  *> 172.16.1.0/24  0.0.0.0       0       100     32768    ?
  *> 172.16.2.0/24  172.16.0.2    0       100     32768    ?
  *> 172.16.3.0/24  172.16.0.3    0       100     32768    ?

  Total number of entries 4

  Address-family: IPv6 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path
  *  2001:100:1:1000::/56
         2001:100:1:1000::72a     0       0       200      ?
  *> 2001:100:1:1000::/56
           ::                     0       100     32768    ?
  *  2001:100:1:2000::/56
         ::FFFF:200.10.10.1 0     0       100     32768    ?

  Total number of entries 3

  VRF: Shared
  Local Router-ID 192.168.99.1

  Address-family: IPv4 Unicast
		----------------------------
  Network             Nexthop       Metric  LocPrf  Weight Path
  *> 192.168.99.0/24  0.0.0.0       0       100     32768    ?
  
  Total number of entries 1

  Address-family: IPv6 Unicast
		----------------------------
  Network           Nexthop       Metric  LocPrf  Weight Path

  Total number of entries 0