The l2 binding vsi access-port command binds a VSI to an interface, indicates that only untagged packets are permitted.
By default, a VSI instance is not bound to an interface.
Parameter | Description | Value |
---|---|---|
vsi vsi-name |
Specifies the name of the VSI to be bound to an interface. The VSI name specified here must be consistent with that specified in the vsi <vsi-name> command. |
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. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, XGE sub-interface view, XGE interface view
Usage Scenario
After a VSI is created and configured, you must run the l2 binding command on an AC interface to bind the AC interface to the VSI.
The access-port attribute can be configured only on an Ethernet interface. If the access-port attribute configured on an interface needs to be changed, you must delete existing configuration first.Prerequisites
A VSI has been created and configured. For example, the VSI ID and peer IP address have been configured.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi company1 [*HUAWEI-vsi-company1] quit [*HUAWEI] interface GigabitEthernet 0/1/9.1 [*HUAWEI-GigabitEthernet0/1/9.1] vlan-type dot1q 10 [*HUAWEI-GigabitEthernet0/1/9.1] l2 binding vsi company1 access-port