Monitoring Layer2 NLRI for VPLS Instances

Purpose

Display layer 2 NLRI for all VPLS instances in the L2VPN address family, for a particular VPLS instance in the L2VPN address family, or for a particular VPLS instance in the VPLS address family.

The l2vpn vpls keywords display layer 2 NLRI for a particular VPLS instance in the VPLS address family.

The l2vpn all keywords display layer 2 NLRI for all VPLS instances in the L2VPN address family. The output for this version of the command also includes information about any VPWS instances configured in the L2VPN address family.

To display layer 2 NLRI for the route that matches a specified prefix (site ID and block offset) in the L2VPN address family or in the VPLS address family, use the site-id and block-offset keywords.

Action

To display information for all VPLS instances (and all VPWS instances) in the L2VPN address family:

host1#show ip bgp l2vpn all
Local BGP identifier 1.1.1.1, local AS 100
  4 routes (264 bytes)
  4 destinations (288 bytes) of which 4 have a route
  0 routes selected for route tables installation
  0 unicast/multicast routes selected for route table installation
  0 unicast/multicast tunnel-usable routes selected for route table installation
  0 tunnel-only routes selected for tunnel-route table installation
  4 path attribute entries (608 bytes)
  Local-RIB version 11. FIB version 11.
Status codes: > best, * invalid, s suppressed, d dampened, r rejected,
              a auto-summarized
Prefix                       Peer            Next-hop       MED LocPrf Weight Origin
> 1:1                        0.0.0.0         self                           0 IGP    
> 1:1                        0.0.0.0         self                           0 IGP    
> 2:1                        2.2.2.2         2.2.2.2               100      0 IGP    
> 2:1                        2.2.2.2         2.2.2.2               100      0 IGP    

To display summary information for the L2VPN address family:

host1#show ip bgp l2vpn all summary
Display summary information for the l2vpn address-family
Local router ID 1.1.1.1, local AS 100
  Administrative state is Start
  BGP Operational state is Up
  Shutdown in overload state is disabled
  Default local preference is 100
  IGP synchronization is enabled
  Default originate is disabled
  Always compare MED is disabled
  Compare MED within confederation is disabled
  Advertise inactive routes is disabled
  Advertise best external route to internal peers is disabled
  Enforce first AS is disabled
  Missing MED as worst is disabled
  Route flap dampening is disabled
  Log neighbor changes is disabled
  Fast External Fallover is disabled
  No maximum received AS-path length
  BGP administrative distances are 20 (ext), 200 (int), and 200 (local)
  Client-to-client reflection is enabled
  Cluster ID is 1.1.1.1
  Route-target filter is enabled
  Default IPv4-unicast is enabled
  Check next-hops of vpn routes is disabled
  Redistribution of iBGP routes is disabled
  Graceful restart is globally disabled
  Global graceful-restart restart time is 120 seconds
  Global graceful-restart stale paths time is 360 seconds
  Graceful-restart path selection defer time is 360 seconds
  Graceful-restart is not ready to switch to the standby SRP
  The last restart was not graceful
  Local-RIB version 11. FIB version 11.
                                                Messages  Messages  Prefixes 
Neighbor           AS State       Up/down time      Sent  Received  Received 
2.2.2.2           100 Established     00:30:35        65        65         2

To display information for the route that matches the specified prefix (2:1) for a VPLS instance named customer1 in the VPLS address family:

host1#show ip bgp l2vpn vpls customer1 site-id 2 block-offset 1
BGP route information for prefix 2:1
  Received route learned from internal peer 2.2.2.2 (best route)
    Leaked route
    Route placed in IP forwarding table
    Best to advertise to external peers
    Address Family Identifier (AFI) is layer2
    Subsequent Address Family Identifier (SAFI) is unicast
    Route Distinguisher (RD) is 100:11
    Original Route Distinguisher (RD) is 100:21
    MPLS in-label is none
    MPLS in-label block size is 0
    MPLS out-label is 46
    MPLS out-label block size is 20
    Next hop IP address is 2.2.2.2 (metric 3)
    Multi-exit discriminator is not present
    Local preference is 100
    Weight is 0
    Origin is IGP
    AS path is empty
    Extended communities RT:100:1 Layer 2:19:00:0

To display only certain information for all VPLS instances (and all VPWS instances) in the L2VPN address family, including the status of the route:

host1:pe1#show ip bgp l2vpn all fields best rd peer next-hop loc-pref extended-communities next-hop-cost
Prefix  Rd     Peer    Next-hop  Next-hop-cost LocPrf Extended-communities
> 1:1  100:11  0.0.0.0   self       0       200 RT:100:1 Layer2:vpls:mtu=0
>m1:1  100:22  10.2.2.2  10.2.2.2   3       100 RT:100:1 Layer2:vpls:mtu=0
> 2:1  100:33  10.3.3.3  10.3.3.3   3       200 RT:100:1 Layer2:vpls:mtu=0
>m2:1  100:44  10.4.4.4  10.4.4.4   3       0 RT:100:1 Layer2:vpls:down,:mtu=0
> 3:1  100:55  10.5.5.5  10.5.5.5   3       100 RT:100:1 Layer2:vpls:mtu=0

Meaning

Table 128 lists the show ip bgp l2vpn command output fields.

Table 128: show ip bgp l2vpn Output Fields

Field Name

Field Description

Local BGP identifier

IP address of the local VE router

local AS

Autonomous system number

Local-RIB version

Version number of the local routing information base

FIB version

Version number of the forwarding information base

Status codes

Status codes for the route, listed before the Prefix:

  • >—best route
  • *—invalid route
  • s—suppressed route
  • d—dampened route
  • r—rejected route
  • a—auto-summarized route
  • m—multihomed backup route; not used to trigger pseudowire

Prefix

Route prefix in the format siteID:blockOffset

Peer

IP address of the peer from which the route was learned

Next-hop (or Next hop IP address)

IP address of the next router that is used when a packet is forwarded to the destination network

MED

Multiexit discriminator for the route

LocPrf

Local preference for the route

Weight

Weight of the route

Origin

Origin of the route

AS path

AS path through which this route has been advertised

Extended communities

Description of the extended communities associated with this route. Includes route target, community type, encapsulation, control word and sequencing use, L2VPN link MTU, layer 2 D-bit (Site-is-Down) setting.

Related Documentation