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.
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. |
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.
# 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