ccc interface in-label out-label

Function

The ccc interface in-label out-label command configures a remote CCC connection between a local CE and a remote CE that connect to different PEs.

The undo ccc command deletes a remote CCC connection.

By default, no remote CCC connection is created.

Format

ccc ccc-connection-name interface { interface-type1 | interface-type1 interface-number1 } [ interface-number1 ] in-label in-label-value out-label out-label-value { nexthop nexthop-address | out-interface { interface-name2 | interface-type2 interface-number2 } } [ control-word | no-control-word ]

ccc ip-interworking ccc-connection-name interface { interface-type1 | interface-type1 interface-number1 } in-label in-label-value out-label out-label-value { nexthop nexthop-address | out-interface { interface-name2 | interface-type2 interface-number2 } } [ control-word | no-control-word ]

Parameters

Parameter Description Value
ccc-connection-name

Specifies a remote CCC connection name. It uniquely identifies a remote CCC connection on a PE.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

interface interface-type1 interface-number1

Specifies the type and number of an inbound interface.

-

interface-number1

Sets the encapsulation type on the inbound interface to raw.

-

in-label in-label-value

Specifies the value of an in-label.

The value is an integer ranging from 16 to 32783.

out-label out-label-value

Specifies the value of an out-label.

The value is an integer ranging from 0 to 1048575.

nexthop nexthop-address

Specifies the IP address of a next hop.

The value is in dotted decimal notation.

out-interface interface-type2 interface-number2

Specifies the type and number of an outbound interface.

-

control-word

Enables the control word function.

By default, the control word function is not enabled.

-

no-control-word

Disables the control word function.

-

ip-interworking

Indicates heterogeneous IP interworking for a remote CCC connection.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

CCC VPWS applies to small-scale MPLS networks with simple topologies. Because it does not require signaling negotiation or control packet exchange, CCC consumes fewer resources; however, it must be configured by network administrators, and therefore has poor scalability and is difficult to maintain.

If two CEs connect to different PEs, run the ccc interface in-label out-label command to create remote CCC connections for the two CEs to communicate.

Prerequisites

MPLS L2VPN has been enabled.

Precautions

  • Remote CCC connections are configured on the PEs connecting to the CEs. A remote CCC connection is unidirectional, and therefore two such connections must be created.
  • If the outbound interface is a broadcast interface or a P2MP interface , you must configure nexthop to specify a next hop IP address. When static CR-LSPs are configured on the P devices, if the outbound interface is a broadcast or P2MP interface, you must also specify a next hop IP address.
  • If a sub-interface is bound to a VPWS PW, the sub-interface can be deleted only after the binding is removed.
  • If a sub-interface is bound to a VPWS PW, you cannot change the encapsulation type of the main interface.
  • PEs use connection names to identify different CCC connections. The name of a CCC connection can vary on different PEs. If P devices connect to PEs, you must configure static CR-LSPs between the P devices and PEs. Do not configure a CCC connection named type. Otherwise, you cannot run the display vll ccc command to check information about this CCC connection. Note that the out-label of a device is the in-label of the next device.

Example

# Create remote CCC connections between CEs connecting to different PEs.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*PE1] ccc ccc-connection-1 interface GigabitEthernet 0/1/0 in-label 100 out-label 200 nexthop 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >