7.2. VSR Pseudowire Ports Command Reference

This chapter describes the VSR pseudowire ports (PW ports) command reference. The commands in this section are applicable only to VSR configurations.

7.2.1. Command Hierarchies

7.2.1.1. PW Port Configuration Commands

For more information about Epipe CLI command syntax and descriptions, refer to 7450 ESS, 7750 SR, 7950 XRS, and VSR Layer 2 Services and EVPN Guide: VLL, VPLS, PBB, and EVPN.

config
— service
— epipe service-id [customer customer-id] [create] [vpn vpn-id] [vc-switching] [test] [name name]
— no epipe service-id
pw-port pw-port-id [create]
— no pw-port pw-port-id
— system
[no] port port-id

7.2.1.2. Show Commands

show
— pw-port
pw-port [pw-port-id] [detail]
pw-port sdp [sdp-id]
pw-port sdp none
pw-port pw-port-id statistics
— service
— system

7.2.1.3. Clear Commands

clear
pw-port id stats

7.2.2. Command Descriptions

7.2.2.1. PW Port Configuration Commands

pw-port

Syntax 
pw-port pw-port-id [create]
no pw-port pw-port-id
Context 
config>service>epipe
Description 

This command is only applicable for VSR configurations. This command associates a Flex PW port with any of the following constructs:

  1. an MPLS-based spoke SDP (PW)
  2. L2oGRE tunnel using IPv4 or IPv6 transport

With this configuration, a PW that is terminated on a Flex PW port can be seamlessly rerouted between I/O ports.

The payload from the PW is extracted from the Flex PW port and processed in accordance with the configured application (a capture SAP in ESM, a PW SAP for business services, and so on). The Epipe that associates the Flex PW port with the spoke SDP or with the tunnel is a regular Epipe service (not of type vc-switching).

This command must be configured before a spoke SDP is added to the Epipe.

The no form of this command removes the pw-port-id from the configuration.

Parameters 
pw-port-id—
Specifies the PW port associated with the PW.
Values—
1 to 10239

 

create—
Keyword required to create the configuration context.

pw-port-list

Syntax 
pw-port-list
Context 
config>service>system
Description 

This command enables the context to configure a port list to bind to Flex PW ports.

port

Syntax 
[no] port port-id
Context 
config>service>pw-port-list
Description 

This command is only applicable for VSR configurations. This command is used to select ports eligible for use with Flex PW port. Physical ports used by Flex PW port can be shared with any other Layer 2 or Layer 3 service. In other words, a Layer 3 interface using a regular SAP can be associated with a VPRN service, while the port is used by a Flex PW port. Another regular SAP from the same port can be associated with a VPLS or Epipe service at the same time.The following rules should be followed when populating a pw-port-list:

  1. A port must be in hybrid mode before it is added to a pw-port-list.
  2. Before a port is removed from or added to a pw-port-list, all PW ports must be dissociated from the corresponding Epipe services (PW ports must be unconfigured). This implies that all PW SAPs must be deleted.
  3. Network interfaces (configured in the Base routing context) can be configured only on ports that are in the pw-port-list.
  4. A port mode (access, network, or hybrid) cannot be changed while the port is in the pw-port-list.

From this, the operator can consider adding all ports that are in hybrid mode to a pw-port-list at the beginning of the system configuration. This ensures that those ports can be used by a Flex PW port at any later time, independently of their current use.

The no form of the command removes the port ID from the configuration.

Parameters 
port-id—
Specifies the IP of the port.
Values—
slot/mda/port: 1 to 16

 

7.2.2.2. Show Commands

pw-port

Syntax 
pw-port [pw-port-id] [detail]
pw-port sdp sdp-id
pw-port sdp none
pw-port pw-port-id statistics
Context 
show
Description 

This command is only applicable for VSR configurations. This command displays PW port configuration, state information, and forwarding statistics.

Parameters 
pw-port-id
Displays information about the specified PW port identifier.
Values—
1 to 10239

 

detail—
Displays detailed port information that includes all the pw-port output fields.
sdp-id
The SDP ID for which to display matching PW port information.
Values—
1 to 17407

 

none—
Displays information about PW ports that are not associated with any SDPs.
statistics—
Displays forwarding statistics, the number of forwarded or dropped packets or octets per direction. Octets account for the entire customer frame (Ethernet, VLANs, and payload).
Output 

The following table describes show pw-port output fields:

Table 87:  Subscriber Show PW-Port Field Descriptions 

Label

Description  

PW Port

The PW port identifier.

Encap

The encapsulation type of the PW port.

SDP:VD-Id

This field is not applicable to the Flex PW port.

IfIndex

The interface index used for the PW port.

Epipe

The ID of the Epipe service in which this PW port is configured. The tunnel type that is terminated on this PW port can be determined from the Epipe.

Description

The description string for the PW port.

Service Id

The ID of the Epipe service in which this PW port is configured.

Admin Status

The Admin status of the SDP.

Oper Status

The operational status of the SDP.

I. Fwd. Pkts.

The number of forwarded packets ingress in this PW port.

I. Fwd. Octs.

The number of forwarded octets ingressing this PW port.

E. Fwd. Pkts.

The number of forwarded packets egressing this PW port.

I. Dro. Pkts.

The number of dropped packets on ingress.

I. Dro. Octs.

The number of dropped octets on ingress.

E. Fwd. Octets.

The number of forwarded octets egressing this PW port.

Grp Enc Stats

Not applicable to Flex PW port.

The following is an example of PW port information.

Sample Output

Following is a sample of output using the L2oGRE tunnel type for the VSR only.

show pw-port 10 
===================================================================
PW Port Information
===================================================================
PW Port   Encap          SDP:VC-Id  IfIndex             Epipe
-------------------------------------------------------------------
10        dot1q          N/A        1526726666          10239
===================================================================
show pw-port 10 
=====================================================================
PW Port Information
=====================================================================
PW Port   Encap          SDP:VC-Id               IfIndex
---------------------------------------------------------------------
10        dot1q          1:2                     1526726666
=====================================================================

Following is a sample of output using the MPLS tunnel type for the VSR only.

*A:Dut-C# show pw-port 10 
=====================================================================
PW Port Information
=====================================================================
PW Port   Encap          SDP:VC-Id               IfIndex
---------------------------------------------------------------------
10        dot1q          17281:100010            1526726666
=====================================================================
*A:vSIM# show pw-port 1 statistics 
===============================================================================
Pw-Port 1
===============================================================================
Statistics            :
I. Fwd. Pkts.        : 0                     I. Dro. Pkts.      : 0
I. Fwd. Octs.        : 0                     I. Dro. Octs.      : 0
E. Fwd. Pkts.        : 22514728              E. Fwd. Octets     : 22424666292
Grp Enc Stats         :
I. Dro. Inv. Spi.    : 0                     I. Dro. OthEncPkts.: 0
E. Dro. Enc. Pkts.   : 0 

Following is a sample of the PW port statistics output for the VSR only.

*A:Dut-B#  show pw-port 10 statistics
===============================================================================
Pw-Port 10
===============================================================================
Statistics            :
I. Fwd. Pkts.        : 0                     I. Dro. Pkts.      : 0
I. Fwd. Octs.        : 0                     I. Dro. Octs.      : 0
E. Fwd. Pkts.        : 0                     E. Fwd. Octets     : 0
Grp Enc Stats         :
I. Dro. Inv. Spi.    : 0                     I. Dro. OthEncPkts.: 0
E. Dro. Enc. Pkts.   : 0

pw-port-list

Syntax 
pw-port-list
Context 
show>service>system
Description 

This command displays system PW port list information.

Output 

The following is an example of system pw-port-list information.

Sample Output
*A:Dut-B>config>service>system# show service system pw-port-list 
=============================================================================== 
  PW Port List 
=============================================================================== 
  Ports 
------------------------------------------------------------------------------- 
  1/1/1 
  1/1/2 
  1/1/3 
  1/1/4 
  1/1/5 
  1/1/6 
------------------------------------------------------------------------------- 
  Number of Entries: 6 
=============================================================================== 

7.2.2.3. Clear Commands

pw-port

Syntax 
pw-port id stats
Context 
clear
Description 

This command clears PW port statistics for the specified ID.