R0106-HP MSR Router Series MPLS Command Reference(V7)
260
pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You
can configure the PW type and control word by specifying a PW class. If you do not specify any PW
class, the PW type is determined by the interface type. The control word function is not supported for PW
types that do not require using control word.
Usage guidelines
This command must be configured on both the local and remote PEs to create a remote CCC connection.
A remote CCC connection is a static L2VPN connection that is manually created by specifying the
incoming and outgoing labels on two PEs. A remote CCC connection does not need a public tunnel, but
it requires configuring two static LSPs in opposite directions on each P device between the two PEs.
CCC employs only one level of label to transfer packets. The static LSPs on the P devices transfer data
only for the CCC connection. The outgoing label specified on a device must be the same as the incoming
label specified on the next-hop device.
After you create a remote CCC connection, you must execute the ac interface command to bind an
interface. The PE can forward packets from the interface to the remote CCC connection.
Use the out-interface keyword to specify the outgoing interface only on a point-to-point link. On other
interfaces such as Layer 3 Ethernet interfaces, VLAN interfaces, and Layer 3 aggregate interfaces, you
must use the nexthop keyword to specify the IP address of the next hop.
CCC connection settings such as the encapsulation type and control word function must be consistent on
the two PEs. Otherwise, the PEs might fail to forward packets over the CCC connection.
Examples
# Create a remote CCC connection that has incoming label 100, outgoing label 200, and next hop
10 .1.1.1 , and uses PW class pwc1.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] connection ccc1
[Sysname-xcg-bbb-ccc1] ccc in-label 100 out-label 200 nexthop 10.1.1.1 pw-class pwc1
# Create a remote CCC connection that has incoming label 100, outgoing label 200, outgoing interface
Serial2/1/0, and uses PW class pwc1.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] connection ccc1
[Sysname-xcg-bbb-ccc1] ccc in-label 100 out-label 200 out-interface serial 2/1/0 pw-class
pwc1
Related commands
• ac interface
• display l2vpn pw
connection
Use connection to create a cross-connect and enter cross-connect view. If the specified cross-connect has
been created, the command opens cross-connect view.
Use undo connection to remove a cross-connect.
Syntax
connection connection-name