This section provides examples of some of the show ip bgp commands that you can use to monitor VPWS configurations.
You can use the show ip bgp commands listed in Table 101 to display BGP-related settings for VPWS instances in the L2VPN address family. The l2vpn all keywords display both all VPWS instances and all VPLS instances in the L2VPN address family
Table 101: Commands for Monitoring BGP Settings for the VPWS Address Family
You can use the show ip bgp commands listed in Table 102 to display BGP-related settings for L2VPNs. Specify l2vpn vpws vpwsName to display information about only the VPWS instances in the VPWS address family. Specify l2vpn all to display information about all VPWS instances in the VPWS address family and all VPLS instances in the VPLS address family.
Table 102: Commands for Monitoring BGP Settings for the VPWS Address Family
For more information about using the show ip bgp commands that are not described in this section, see Configuring BGP Routing and Configuring BGP-MPLS Applications.
Purpose
Display layer 2 NLRI for all VPWS instances in the L2VPN address family, for a particular VPWS instance in the L2VPN address family, or for a particular VPWS instance in the VPWS address family.
The l2vpn vpws keywords display layer 2 NLRI for a particular VPWS instance in the VPWS address family.
The l2vpn all keywords display layer 2 NLRI for all VPWS instances in the L2VPN address family. The output for this version of the command also includes information about any VPLS 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 VPWS address family, use the site-id and block-offset keywords.
Action
To display information for a particular L2VPN instance in the L2VPN address family:
host1:pe1# show ip bgp l2vpn vpws l2vpn1
Local BGP identifier 10.1.1.1, local AS 100
2 routes (152 bytes)
2 destinations (152 bytes) of which 2 have a route
2 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 6. FIB version 6.
Status codes: > best, * invalid, s suppressed, d dampened, r rejected,
a auto-summarized m multihomed-backup
Prefix Peer Next-hop MED LocPrf Weight Origin
> 1:1 0.0.0.0 self 0 IGP
> 2:1 12.2.2.2 12.2.2.2 100 0 IGP
To display summary information for a particular VPWS instance in the VPWS address family; only the BGP operational state is useful:
host1:pe1# show ip bgp l2vpn vpws l2vpn1 summary Local router ID 10.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 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 not configured (local router ID used) Route-target filter is enabled Default IPv4-unicast is enabled 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 6. FIB version 6. (No neighbors are configured)
To display information for the route that matches the specified prefix (2:1) for a VPWS instance named customer1 in the VPWS address family:
host1#show ip bgp l2vpn vpws customer1 site-id 2 block-offset 1
BGP route information for prefix 2:1
Received route learned from internal peer 10.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 information for all instances that support a multihomed site with site ID 2 and block offset 1:
host1:pe1#show ip bgp l2vpn all 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) Route not placed in PW table Best to advertise to external peers Suppressed by multihoming Address Family Identifier (AFI) is layer2 Subsequent Address Family Identifier (SAFI) is vpn-unicast Route Distinguisher (RD) is 100:23 Original Route Distinguisher (RD) is 100:23 MPLS in-label is none MPLS in-label block size is 0 MPLS out-label is 106 MPLS out-label block size is 10 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:3 Layer2:atm-vcc-cell:use-cw,use-seq,:mtu=0 Status Vector 0x7fc0
Meaning
Table 103 lists the show ip bgp l2vpn command output fields
Table 103: show ip bgp l2vpn Output Fields