show bgp vpn unicast
Syntax
show bgp vpn 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
By default the default_vrf BGP instance information is displayed if the VRF is not specified.
vpnv4
Selects the VPNv4 address-family
vpnv6
Selects the VPNv6 address-family
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
orvrf-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 vpnv4/v6 address family routes for all VRFs or for a specified VRF:
switch# show bgp vpnv4 unicast vrf red ? A.B.C.D/M IP prefix <network>/<length>, e.g., 35.0.0.0/8
Show BGP VPNv4 unicast routes for all:
switch# show bgp vpnv4 unicast 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 Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 65000:1 (vrf Red) *> 172.16.0.0/24 0.0.0.0 0 32768 ? *> 172.16.1.0/30 0.0.0.0 0 32768 ? *> 172.16.2.0/24 172.16.0.2 2 32768 ? *> 172.16.3.0/24 172.16.0.3 2 32768 ? Route Distinguisher: 65000:2 (vrf Green) *> 172.17.0.0/24 0.0.0.0 0 32768 ? *> 172.17.1.0/30 0.0.0.0 0 32768 ? *> 172.17.2.0/24 172.17.0.2 2 32768 ? Route Distinguisher: 65000:3 (vrf Blue) *> 172.18.0.0/24 0.0.0.0 0 32768 ? *> 172.18.1.0/30 0.0.0.0 0 32768 ? *> 172.18.3.0/24 172.18.0.3 2 32768 ? Route Distinguisher: 65000:99 (vrf Shared) *> 192.168.99.0 0.0.0.0 0 32768 ?
Shows BGP VPNv6 unicast for all:
switch# show bgp vpnv6 unicast 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 Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 100:1(vrf red) * 2001:100:1:1000::/56 2001:100:1:1000::72a 0 0 200 ? *> 2001:100:1:1000::/56 :: 0 32768 ? *i 2001:100:1:2000::/56 ::FFFF:200.10.10.1 0 32768 ? Route Distinguisher: 200:1 (vrf green) *> 2001:100:2:1000::/56 :: 0 32768 ? * 2001:100:2:2000::/56 ::FFFF:200.10.10.1 0 32768 ? switch# show bgp vpnv4 unicast vrf red 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 Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 65000:1 (vrf Red) *> 172.16.0.0/24 0.0.0.0 0 32768 ? *> 172.16.1.0/30 0.0.0.0 0 32768 ? *> 172.16.2.0/24 172.16.0.2 2 32768 ? *> 172.16.3.0/24 172.16.0.3 2 32768 ? switch# show bgp vpnv6 unicast vrf red 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 Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 100:1 (vrf red) * 2001:100:1:1000::/56 2001:100:1:1000::72a 0 0 200 ? *> 2001:100:1:1000::/56 :: 0 32768 ? *i 2001:100:1:2000::/56 ::FFFF:200.10.10.1 0 32768 ? switch# show bgp vpnv4 vrf red 172.16.0.0/2 VRF : red BGP Local AS 100 BGP Router-id 2.2.2.2 Network : 100.0.0.0/24 Nexthop : 0.0.0.0 Peer : 0.0.0.0 Origin : incomplete Metric : 0 Local Pref : 100 Weight : 32768 Calc. Local Pref : 100 Best : Yes Valid : Yes Type : internal Stale : No Originator ID : 0.0.0.0 Extended Communities : RT:100:1 RT:100:2