< Home

connection

Function

The connection command creates a connection in Kompella mode between CEs.

The undo connection ce-offset command deletes a connection in Kompella mode between CEs.

By default, no connection in Kompella mode is created between CEs.

Format

connection [ ce-offset id ] interface interface-type interface-number [ tunnel-policy policy-name ] [ raw | tagged ] [ secondary ]

undo connection ce-offset id

Parameters

Parameter Description Value

ce-offset id

Specifies the ID of the peer CE connected to the L2VPN.

The value is a decimal integer that ranges from 0 to 249. id must be not more than ce-range. For the configuration about ce-range, see ce. For a remote connection, ce-offset and the ID of the remote CE must be the same; for a local connection between two CEs, ce-offset of a CE is the ID of the other CE.

interface interface-type interface-number

Specifies the type and number of the interface connected to the CE.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

tunnel-policy policy-name

Specifies the name of a tunnel policy applied to a VLL connection.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

raw

Sets the encapsulation mode to raw mode. In raw mode, the device deletes the Provider tag (P-Tag) in the packets. The P-Tag is inserted by an SP device to distinguish traffic from different users.

-

tagged

Sets the encapsulation mode to tagged mode. In tagged mode, the device retains the P-Tag in the packets.

-

secondary

Specifies the secondary connection of the CE. If this parameter is not specified, the new connection becomes the primary connection. Specify this parameter only when a primary connection exists locally.

-

Views

MPLS-L2VPN-CE view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use the connection command to create a connection.

Precautions

An interface cannot serve as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, the Layer 3 features such as the IP address and routing protocol configured on this interface become invalid.

  • When the sub-interface is bound to a VLL, the encapsulation protocol type of the main interface cannot be changed.

  • If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.

  • VLANIF interfaces, XGE interfaces, 25GE interface, MultiGE interface, 40GE interfaces, 100GE interfaces, GE interfaces, Eth-Trunk interfaces, XGE sub-interfaces, 25GE sub-interface, MultiGE sub-interfaces, 40GE sub-interfaces, 100GE sub-interfaces, GE sub-interfaces, or Eth-Trunk sub-interfaces can be used as AC interfaces connected to CEs.

    To use an XGE interface, a GE interface, a 25GE interface, a MultiGE interface, a 40GE interface, a 100GE interface, or an Eth-Trunk interface of the device as the AC interface of the PE, run the undo portswitch command to change a Layer 2 interface to a Layer 3 interface.

  • The management interface cannot be configured as the AC interface connected to a CE.

When creating a connection in Kompella mode, you need to specify the peer CE ID and the local CE interface.

If you do not specify ce-offset id:

  • For the first connection of the CE, by default, ce-offset id is the same as the default-offset. For the description about default-offset, see ce. If ce-offset equals the current CE ID, ce-offset increases by 1.

  • For other connections, ce-offset id is the last CE ID plus 1. If the CE offset ID of the last connection plus 1 equals the current CE ID, the ce-offset id is the value obtained by CE offset of the last connection plus 2.

It is recommended that you number CE IDs from 1 in ascending order, and to configure connections in the order of CE IDs. To simplify configuration, you can use the default ce-offset directly in most connections.

After the command is configured, the default policy is adopted in the following situations:

  • If you do not specify a policy name

  • If the specified policy is not configured

In the default policy:

  • Only LSP tunnels are selected.

  • No load balancing is performed.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

Example

# Create a connection in Kompella mode.

<HUAWEI1> system-view
[HUAWEI1] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI1-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI1-mpls-l2vpn-vpn1] vpn-target 1:1
[HUAWEI1-mpls-l2vpn-vpn1] ce ce1 id 1 range 10
[HUAWEI1-mpls-l2vpn-ce-vpn1-ce1] connection ce-offset 2 interface vlanif 10
<HUAWEI2> system-view
[HUAWEI2] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI2-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI2-mpls-l2vpn-vpn1] vpn-target 1:1
[HUAWEI2-mpls-l2vpn-vpn1] ce ce2 id 2 range 10
[HUAWEI2-mpls-l2vpn-ce-vpn1-ce2] connection ce-offset 1 interface vlanif 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >