
235
Examples
# Create a remote CCC connection from CEA to CEB, specifying the incoming interface as the interface
connected to CEA , the next hop as 20.1.1.2, the incoming label as 100, and the outgoing label as 200.
<Sysname> system-view
[Sysname] ccc CEA-CEB interface vlan-interface 10 in-label 100 out-label 200 nexthop
20.1.1.2
ce
Description
Use the
ce
command in MPLS L2VPN view to create a CE and enter MPLS L2VPN CE view.
Use the
undo ce
command to delete a CE.
To create a CE, specify the
id
keyword in the command. To enter the view of an existing CE, you do not
need to do so.
Syntax
ce
ce-name
[
id
ce-id
[
range
ce-range
] [
default-offset
ce-offset
] ]
undo
ce
ce-name
View
MPLS L2VPN view, MPLS L2VPN CE view
Default level
2: System level
Parameters
ce-name
: Specifies the unique name for a CE in the current VPN of the current PE, which is a string of 1
to 20 characters that cannot include the character of “-”.
id
ce-id
: Specifies a CE in the VPN by its ID. The value ranges from 0 to 199.
range
ce-range
: Specifies the maximum number of CEs to which the specified CE can connect. The value
ranges from 1 to 200, and the default is 10.
default-offset
ce-offset
: Specifies the original CE offset. It can be either 0 or 1. The default is 0.
Examples
# Create a CE named ce1 for a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 100:1
[Sysname-mpls-l2vpn-vpn1] ce ce1 id 1
[Sysname-mpls-l2vpn-ce-vpn1-ce1]
# Create a CE named ce2 for a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 100:1
[Sysname-mpls-l2vpn-vpn1] ce ce2 id 2
[Sysname-mpls-l2vpn-ce-vpn1-ce2]