# Monitoring VPWS Connections

#### Purpose

Display configuration and status information for VPWS L2VPN connections configured on the router. The details keyword displays detailed information about the connections.

#### Action

To display detailed information about connections for all VPWS instances configured on the router:

    host1:pe1# show l2vpn connections details
    L2VPN: l2vpn1
        Encapsulation Type Ethernet
        Use of control word is preferred
        Send sequence numbers
        Route Distinguisher 100:11
        Site Range 10
        Sites:
          Site Name westford Site Id 1
           Multi-homed:            Yes
           Site-Priority:          45    Route Targets:
          Route Target: RT:100:1 both
                                                        Admin    Oper
       Interface      Local-Site-Id   Remote-Site-Id    state    state
    ---------------   -------------   --------------   -------   -----
    FastEthernet4/1   1               2                enabled   up
    Connections status code:
    UP = Operational
    SC = Local and Remote Site Identifier Collision
    EM = Encapsulation Mismatch
    OR = Out of Range
    DN = VC Down because Remote PE Unreachable
    LD = Local Site Down
    RD = Remote Site Down
    AS = Max BGP AS path length exceeded
    OL = No Out Label
    CM = Control Word Mismatch
    LN = Local Site not Designated
    RN = Remote Site not Designated

    Local   Remote           Remote                             MPLS     Up-down
    Site     Site    State     PE      In-label   Out-label    NH Idx      Time
    -----   ------   -----   -------   --------   ---------   --------   --------
    1       2        UP      2.2.2.2   25         74          0000001d   01:49:12
    L2VPN: l2vpn2
        Encapsulation Type ATM AAL5 SDU VCC transport
        Use of control word is preferred
        Send sequence numbers
        Route Distinguisher 100:12
        Site Range 20
        Sites:
          Site Name boston Site Id 3
           Multi-homed:            Yes
           Site-Priority:          100    Route Targets:
          Route Target: RT:100:2 both
                                                   Admin    Oper
    Interface    Local-Site-Id   Remote-Site-Id    state    state
    ----------   -------------   --------------   -------   -----
    ATM2/0.122   1               2                enabled   up
    ATM2/0.123   1               3                enabled   up
    ATM2/0.124   3               1                enabled   up
    ATM2/0.121   3               2                enabled   up
    Connections status code:
    UP = Operational
    SC = Local and Remote Site Identifier Collision
    EM = Encapsulation Mismatch
    OR = Out of Range
    DN = VC Down because Remote PE Unreachable
    LD = Local Site Down
    RD = Remote Site Down
    AS = Max BGP AS path length exceeded
    OL = No Out Label
    CM = Control Word Mismatch
    LN = Local Site not Designated
    RN = Remote Site not Designated

    Local   Remote           Remote                                      MPLS     Up-down
    Site     Site    State     PE        In-label        Out-label      NH Idx      Time
    -----   ------   -----   -------   -------------   -------------   --------   --------
    1       2        UP      2.2.2.2   35              84              0000001d   01:50:40
    1       3        UP                implicit-null   implicit-null   2d000008   02:24:45
    3       1        UP                implicit-null   implicit-null   2d000007   02:24:45
    3       2        UP      2.2.2.2   55              86              0000001d   01:50:40

To display detailed information about connections for a specific VPWS instance:

    host1#show l2vpn connections instance l2vpn1 details
    L2VPN: l2vpn1
        Encapsulation Type ATM AAL5 SDU VCC transport
        Use of control word is preferred
        Send sequence numbers
        Route Distinguisher 100:11
        Site Range 10
        Sites:
          Site Name westford Site Id 1
          Multihomed priority 200
         Route Targets:
          Route Target: RT:100:2 both

                                                   Admin    Oper
    Interface    Local-Site-Id   Remote-Site-Id    state    state
    ----------   -------------   --------------   -------   -----
    ATM2/0.100   1               2                enabled   up
    ATM2/0.12    1               3                enabled   up

    Connections status code:
    UP = Operational
    SC = Local and Remote Site Identifier Collision
    EM = Encapsulation Mismatch
    OR = Out of Range
    DN = VC Down because Remote PE Unreachable
    LD = Local Site Down
    RD = Remote Site Down
    AS = Max BGP AS path length exceeded
    OL = No Out Label
    CM = Control Word Mismatch
    LN = Local Site not Designated
    RN = Remote Site not Designated

                   Remote                             MPLS       Up-down
    Site   State     PE      In-label   Out-label    NH Idx       Time
    ----   -----   -------   --------   ---------   --------   -----------
    2      UP      2.2.2.2   17         801024      00000014   1d 08:45:34
    3      UP      2.2.2.2   18         801028      00000014   1d 08:45:34

#### Meaning

Table 139 lists the show l2vpn connections command output fields.

Table 139: show l2vpn connections Output Fields

Field Name | Field Description
--- | ---
L2VPN | Name of the VPWS instance
Encapsulation Type | Encapsulation type configured for the VPWS instance
Use of control word | Local preference for control word, preferred or not preferred
sequence numbers | Local preference for sequence number, send or don’t send
Route Distinguisher | Route distinguisher configured for the VPWS instance
Site Range | Maximum number of customer sites allowed in the VPWS instance
Sites | Site name and site ID for each customer site in the VPWS instance
Multihomed priority | Priority of the VPWS instance to serve as the backup PE router for the CE device in the event of a network failure in the multihomed configuration; indicates also that the site is multihomed
Route Targets | Route targets configured for the VPWS instance
Interface | Layer 2 interface that is a member of the VPWS instance
Local-Site-Id | Local customer site ID configured on the layer 2 interface
Remote-Site-Id | Remote customer site ID configured on the layer 2 interface

#### Related Documentation

- show l2vpn connections