Monitoring BGP-Related Settings for L2VPNs
This section provides examples of some of the show ip bgp commands that you can use to monitor L2VPN configurations.
You can use the show ip bgp commands listed in Table 73 to display BGP-related settings for L2VPN (VPWS) instances in the L2VPN address family.
You can use the show ip bgp commands listed in Table 74 to display BGP-related settings for L2VPN (VPWS) instances in the VPWS address family.
For more information about using the show ip bgp commands that are not described in this section, see Chapter 1, Configuring BGP Routing and Chapter 3, Configuring BGP-MPLS Applications.
Purpose
Display layer 2 NLRI for L2VPN (VPWS) instances. The l2vpn vpws keywords display layer 2 NLRI for a particular L2VPN (VPWS) instance in the VPWS address family.
The l2vpn all keywords display layer 2 NLRI for all L2VPN (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.
The site-id and block-offset keywords 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.
Action
To display information for a particular L2VPN instance in the L2VPN address family:
host1:pe1#show ip bgp l2vpn vpws l2vpn1Local BGP identifier 10.1.1.1, local AS 1002 routes (152 bytes)2 destinations (152 bytes) of which 2 have a route2 routes selected for route tables installation0 unicast/multicast routes selected for route table installation0 unicast/multicast tunnel-usable routes selected for route table installation0 tunnel-only routes selected for tunnel-route table installation4 path attribute entries (608 bytes)Local-RIB version 6. FIB version 6.Status codes: > best, * invalid, s suppressed, d dampened, r rejected,a auto-summarizedPrefix 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 IGPTo display summary information for a particular L2VPN instance in the VPWS address family; only the BGP operational state is useful:
host1:pe1#show ip bgp l2vpn vpws l2vpn1 summaryLocal router ID 10.1.1.1, local AS 100Administrative state is StartBGP Operational state is UpShutdown in overload state is disabledDefault local preference is 100Default originate is disabledAlways compare MED is disabledCompare MED within confederation is disabledAdvertise inactive routes is disabledAdvertise best external route to internal peers is disabledEnforce first AS is disabledMissing MED as worst is disabledRoute flap dampening is disabledLog neighbor changes is disabledFast External Fallover is disabledNo maximum received AS-path lengthBGP administrative distances are 20 (ext), 200 (int), and 200 (local)Client-to-client reflection is enabledCluster ID is not configured (local router ID used)Route-target filter is enabledDefault IPv4-unicast is enabledRedistribution of iBGP routes is disabledGraceful restart is globally disabledGlobal graceful-restart restart time is 120 secondsGlobal graceful-restart stale paths time is 360 secondsGraceful-restart path selection defer time is 360 secondsGraceful-restart is not ready to switch to the standby SRPThe last restart was not gracefulLocal-RIB version 6. FIB version 6.(No neighbors are configured)To display information for the route that matches the specified prefix (2:1) for an L2VPN instance named customer1 in the VPWS address family:
host1#show ip bgp l2vpn vpws customer1 site-id 2 block-offset 1BGP route information for prefix 2:1Received route learned from internal peer 10.2.2.2 (best route)Leaked routeRoute placed in IP forwarding tableBest to advertise to external peersAddress Family Identifier (AFI) is layer2Subsequent Address Family Identifier (SAFI) is unicastRoute Distinguisher (RD) is 100:11Original Route Distinguisher (RD) is 100:21MPLS in-label is noneMPLS in-label block size is 0MPLS out-label is 46MPLS out-label block size is 20Next hop IP address is 2.2.2.2 (metric 3)Multi-exit discriminator is not presentLocal preference is 100Weight is 0Origin is IGPAS path is emptyExtended communities RT:100:1 Layer 2:19:00:0Meaning
Table 75 lists the show ip bgp l2vpn command output fields
IP address of the next router that is used when a packet is forwarded to the destination network
- show ip bgp command
- show ip bgp advertised-routes command
- show ip bgp community command
- show ip bgp community-list command
- show ip bgp dampened-paths command
- show ip bgp filter-list command
- show ip bgp flap-statistics command
- show ip bgp neighbors command
- show ip bgp neighbors dampened-routes command
- show ip bgp neighbors received-routes command
- show ip bgp neighbors routes command
- show ip bgp next-hops command
- show ip bgp paths command
- show ip bgp peer-group command
- show ip bgp quote-regexp command
- show ip bgp regexp command
- show ip bgp summary command