Related Documentation
- show ip bgp
- show ip bgp advertised-routes
- show ip bgp community
- show ip bgp community-list
- show ip bgp dampened-paths
- show ip bgp filter-list
- show ip bgp flap-statistics
- show ip bgp neighbors
- show ip bgp neighbors dampened-routes
- show ip bgp neighbors received-routes
- show ip bgp neighbors routes
- show ip bgp next-hops
- show ip bgp paths
- show ip bgp peer-group
- show ip bgp quote-regexp
- show ip bgp regexp
- show ip bgp summary
Monitoring BGP-Related Settings for VPWS L2VPNS
Purpose
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 1 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 1: Commands for Monitoring BGP Settings for the VPWS Address Family
show ip bgp advertised-routes | show ip bgp neighbors received-routes |
show ip bgp l2vpn all | show ip bgp neighbors routes |
show ip bgp neighbors | show ip bgp peer-group |
show ip bgp neighbors dampened-routes |
|
You can use the show ip bgp commands listed in Table 2 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 2: Commands for Monitoring BGP Settings for the VPWS Address Family
show ip bgp | show ip bgp l2vpn vpws |
show ip bgp community | show ip bgp next-hops |
show ip bgp community-list | show ip bgp paths |
show ip bgp dampened-paths | show ip bgp quote-regexp |
show ip bgp filter-list | show ip bgp regexp |
show ip bgp flap-statistics | show ip bgp summary |
For more information about using the show ip bgp commands that are not described in this section, see the Configuring BGP Routing and Configuring BGP-MPLS Applications chapters of JunosE BGP and MPLS Configuration Guide.
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 3 lists the show ip bgp l2vpn command output fields
Table 3: show ip bgp l2vpn Output Fields
Field Name | Field Description |
---|---|
Local BGP identifier | IP address of the local PE 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:
|
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 L2VPN extended communities that the router uses to determine which routes are imported by the specified VPWS instance. Includes route target, community type, encapsulation, control word and sequencing use, L2VPN link MTU. |
BGP Operational state | Operational state, up or down |
Status Vector | Hexadecimal representation of the status vector bits attached to the route |
Related Documentation
- show ip bgp
- show ip bgp advertised-routes
- show ip bgp community
- show ip bgp community-list
- show ip bgp dampened-paths
- show ip bgp filter-list
- show ip bgp flap-statistics
- show ip bgp neighbors
- show ip bgp neighbors dampened-routes
- show ip bgp neighbors received-routes
- show ip bgp neighbors routes
- show ip bgp next-hops
- show ip bgp paths
- show ip bgp peer-group
- show ip bgp quote-regexp
- show ip bgp regexp
- show ip bgp summary