The mpls ccc command enables an AC interface on a PE to establish a circuit cross connect (CCC) connection with another AC interface on the same PE.
The undo mpls ccc command removes a local CCC connection.
By default, no local CCC connection is created on an AC interface of a PE.
mpls ccc instance-name instance-name-value out-interface { interface-name | interface-type interface-number } [ [ ip-interworking | ip-layer2 | raw | tagged ] | [ access-port ] ] *
mpls ccc out-interface { interface-name | interface-type interface-number } [ [ ip-interworking | ip-layer2 | raw | tagged ] | [ access-port ] | [ secondary ] ] *
undo mpls ccc [ instance-name instance-name-value ]
undo mpls ccc [ out-interface { interface-name | interface-type interface-number } [ [ ip-interworking | ip-layer2 | raw | tagged ] | [ access-port ] ] * ] secondary
Parameter | Description | Value |
---|---|---|
out-interface interface-type interface-number |
Specifies the type and number of the outbound interface of a CCC connection. |
- |
ip-interworking |
Enables heterogeneous media IP interworking between Huawei devices. |
- |
ip-layer2 |
Enables heterogeneous media IP interworking between a Huawei device and a non-Huawei device. |
- |
raw |
Specifies that packets do not carry P-tags after being encapsulated for a CCC connection. |
- |
tagged |
Specifies that packets will carry P-tags after being encapsulated for a CCC connection. |
- |
access-port |
Allows only untagged packets to pass through an AC interface. By default, all packets can be transmitted through an AC interface. The access-port parameter applies only to main Ethernet interfaces. |
- |
secondary |
Configures a CCC as a secondary CCC. If this keyword is not specified, the created CCC will be a primary CCC. Note that this parameter can be specified only if a primary VC exists locally. |
- |
instance-name instance-name-value |
Specifies the name of an L2VPN service. This parameter uniquely identifies an L2VPN service on a PE. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The character string can contain spaces if it is enclosed with double quotation marks (" "). |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view
Usage Scenario
In the scenario where an LDP VC is configured to protect a CCC VC, CE1 and CE2 are connected to the same PE through a local CCC VC. If CE2 serves as a BRAS and needs to authenticate CE1, in case that CE2 or the AC2 interface on CE2 fails, CE1 cannot be authenticated. If the PE is connected to another BRAS through an LDP VC, you can run the mpls ccc command to configure the PW as the backup for the AC2 link. If CE2 or the AC2 interface on CE2 fails, CE1 can access the other BRAS for authentication.
Specifying the raw or tagged parameter in the mpls ccc command takes effect only when a CCC connection is established on Ethernet links and heterogeneous IP interworking is not configured. Specifying the access-port parameter takes effect only on Ethernet interfaces.Prerequisites
MPLS L2VPN has been enabled using the mpls l2vpn command.
Precautions