< Home

l2 binding

Function

The l2 binding command binds an interface to a VSI.

The undo l2 binding command unbinds an interface to a VSI.

By default, the interface is not bound to any VSI.

Format

l2 binding vsi vsi-name

undo l2 binding vsi vsi-name

Parameters

Parameter Description Value

vsi vsi-name

Specifies the name of the VSI to be bound with an interface.

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

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the VPLS, run the l2 binding command on the PE to bind the interface that is connected to the CE to the corresponding VSI.

Precautions

When an interface is bound to a VSI, the MTU can be configured in the interface view but does not take effect. The MTU configured in the VSI is used for PW MTU negotiation.

In the VPLS application, different CEs are transparently connected to each other in the same network segment of a LAN through VSIs, and the IP addresses of the CEs must be different.
  • If an interface is used as a VPLS AC-side interface and a multicast inbound interface at the same time, multicast data cannot be forwarded normally on this interface. (S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not have this restriction.)
  • If a sub-interface is bound to a VSI, you can delete the sub-interface only after unbinding it from the VSI.
  • To use a 40GE, 100GE, XGE, 25GE, MultiGE, GE, or Eth-Trunk interface of the switch as an AC-side interface, run the undo portswitch command to change the interface to a Layer 3 interface before running the l2 binding command.
  • Before running the l2 binding command on a sub-interface, add the main interface to a VLAN.
  • The l2 binding command and the ip address command cannot be configured on the CE-side interface of the PE at the same time.

Example

# Bind a VLANIF interface to the VSI.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] l2 binding vsi company2

# Bind a Gigabitethernet interface to a VSI.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] l2 binding vsi company2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >