< Home

ce

Function

The ce command creates a CE and displays the MPLS-L2VPN-CE view.

The undo ce command deletes a CE.

By default, no CE is created in a L2VPN instances.

Format

ce ce-name [ id ce-id [ range ce-range ] [ default-offset ce-offset ] ]

undo ce ce-name

Parameters

Parameter Description Value

ce-name

Specifies the name of a CE.

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

id ce-id

Specifies the ID of the CE.

The value is a decimal integer that ranges from 0 to 249. A CE ID uniquely identifies a CE in a L2VPN instances. For convenience, you are advised to set the CE IDs in the sequence of natural number.

range ce-range

Specifies the number of CEs in an L2VPN instance.

The value is a decimal integer that ranges from 1 to 250 and the default is 10.

default-offset ce-offset

Indicates the default CE offset. The CE offset refers to the ID of the other local CE or the remote CE that establishes the connection with the local CE.

It can be either 0 or 1. The default is 0.

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use the ce command to create a CE in a L2VPN instance and enter the MPLS-L2VPN-CE view.

Prerequisites

An RD has been configured for the L2VPN instance.

Precautions

ce-range can be increased but cannot be decreased. If multiple label blocks exist, the ce-range equals the total size of all label blocks. A device allocates labels to the ranges of Kompella L2VPN instances and VPLS VSIs from the same label block. Therefore, the ranges of Kompella L2VPN instances and VPLS VSIs cannot be larger than the size of the label block. Otherwise, the system displays a message indicating that the number of required labels exceeds the permitted maximum labels. As a result, the system fails to create a CE or fails to allocate a site ID to a VSI.

The constraints between default-offset and ce-range in this command and ce-offset in connection are as follows:

  • If default-offset in this command is 0, ce-offset in the connection command must be less than ce-range in this command.

  • If default-offset in this command is 1, ce-offset in the connection command must be not more than ce-range in this command and cannot be 0.

Example

# Create a CE named ce1 inside the vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation ethernet
[HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI-mpls-l2vpn-vpn1] ce ce1 id 1 range 10
[HUAWEI-mpls-l2vpn-ce-vpn1-ce1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >