show ip bgp vpnv4

This command displays the VPNv4 address information from the BGP table. If an optional VRF is specified, the address information for communities within that VRF instance are displayed.

Format show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [ip-prefix/length]
Mode Privileged EXEC
Parameter Description
all Displays the complete VPNv4 database.
rd route- distinguisher Displays NLRI prefixes that match the named route distinguisher.
vrf vrf-name Displays NLRI prefixes associated with the communities within the named VRF instance.
ip-prefix/length IP address (in dotted decimal format) and the length of the mask (0 to 32). The slash (/) mark must be included.

The command outputs the following information, depending on the selected parameters.

Field Description
BGP table version Each time phase 2 of the BGP decision process runs to select new BGP routes, this number is incremented.
Status codes One of the following:
  • s: The route is aggregated into an aggregate address configured with the summary-only option.
  • *: LCOS SX never displays invalid routes; so this code is always displayed (to maintain consistency with the industry standard).
  • >: Indicates that BGP has selected this path as the best path to the destination.
  • i: The route is learned from an internal peer.
Route Distinguisher The RD associated with the VRF.
Network Destination prefix
Next Hop The route's BGP next hop.
Metric BGP metric.
LocPrf The local preference.
Path The AS path per route.
Prefix/Prefix Length The destination prefix and prefix length.
Generation ID The version of the BGP routing table when this route last changed.
Forwarding if this BGP route is used for forwarding.
Advertised To Update Groups The outbound update groups to which this route is advertised.
Local Preference The local preference, either as received from the peer or as set according to local policy.
AS Path The AS Path. This form of the command displays AS Paths as long as allowed by bgp maxas-limit.
Origin Value of the ORIGIN attribute.
Metric Value of the MED attribute, if included.
Type If the path is received from an internal or external peer.
IGP Cost The interior gateway cost (e.g., OSPF cost) to the BGP NEXT HOP
Peer (Peer ID) The IP address of the peer that sent this route, and its router ID.
BGP Next Hop The BGP NEXT HOP attribute.
Atomic Aggregate If the ATOMIC AGGEGATE attribute is attached to the path.
Aggregator The AS number and router ID of the speaker that aggregated the route.
Communities The BGP communities attached to the path.
Originator If the ORIGINATOR attribute is attached to the path, the value of this attribute.
Cluster List If the CLUSTER_LIST attribute is attached to the path, the sequence of cluster IDs in the cluster list.
Extended Community Route target value associated with the specified route.

Example: The following example shows all available VPNv4 information in a BGP routing table:

(Routing) # show ip bgp vpnv4 all

BGP table version is 5, local router ID is 20.1.1.1
Status codes: s suppressed, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network            Next Hop     Metric   LocPrf   Path
Route Distinguisher : 1:10 (for VRF red)
*> 172.20.1.0/24    100.10.1.1         10      100   20 10 i
*> 24.95.16.0/24    100.10.1.1         10      100   20 10 i
*> 24.14.8.0/24     100.10.1.1         10      100   20 10 i

Route Distinguisher : 2:20 (for VRF blue)
*> 173.20.1.0/24    120.10.1.1         10      100   20 10 i
*> 25.95.16.0/24    120.10.1.1         10      100   20 10 i
*> 25.14.8.0/24     120.10.1.1         10      100   20 10 i

Route Distinguisher : 3:30 (for VRF yellow)
*> 174.20.1.0/24    130.10.1.1         10      100   20 10 i
*> 26.95.16.0/24    130.10.1.1         10      100   20 10 i
*> 26.14.8.0/24     130.10.1.1         10      100   20 10 i

Example: The following example shows VPNv4 routing entries for VRF named red:

(Routing) # show ip bgp vpnv4 vrf red

BGP table version is 5, local router ID is 20.1.1.1
Status codes: s suppressed, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network            Next Hop     Metric   LocPrf   Path
Route Distinguisher : 1:10 (for VRF red)
*> 172.20.1.0/24    100.10.1.1         10      100   20 10 i
*> 24.95.16.0/24    100.10.1.1         10      100   20 10 i
*> 24.14.8.0/24     100.10.1.1         10      100   20 10 i

Example: The following example shows the attributes for network 172.20.1.0 that include multi-paths and best path Use like any of the below formats):

(Routing) # show ip bgp vpnv4 vrf red 172.20.1.0 255.255.255.0
(Routing) # show ip bgp vpnv4 vrf red 172.20.1.0/24

Prefix/Prefix Length....................... 1:100:172.20.1.0/24
Generation ID.............................. 2056
Forwarding................................. Yes
Advertised to Update Groups................ 1, 5

Best Path:
Imported from.............................. 2:200:100.10.1.1
Local Preference........................... 100
AS Path.................................... 20 10
Origin..................................... IGP
Metric..................................... 10
Type....................................... External
IGP Cost................................... 30
Peer (Peer ID)............................. 100.10.1.1 (32.4.1.1)
BGP Next Hop............................... 100.10.1.1
Atomic Aggregate........................... Included
Aggregator (AS, Router ID)................. 300, 14.1.1.1
Communities................................ no-export
Extended Community......................... RT:1:100
                                            RT:2:200
Originator................................ 10.1.1.1

Non-best Paths:
Local Preference........................... 200
AS Path.................................... 18 50 27
Origin..................................... Incomplete
BGP Next Hop............................... 200.1.1.1
Extended Community......................... RT:3:300
Type....................................... External
IGP Cost................................... 10
Peer (Peer ID)............................. 200.1.1.1 (18.24.1.3)

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo