How do I restore the default VLAN configuration of an interface

Publication Date:  2016-11-24 Views:  167 Downloads:  0
Issue Description
How do I restore the default VLAN configuration of an interface?
Solution
The default VLAN configuration of an interface involves the default VLAN of the interface and the VLAN that the interface joins. By default, the default VLAN of an interface is VLAN 1 and an interface joins VLAN 1 in untagged mode.

Run the display this command in the interface view to check the link type of the interface, and perform the following operations to restore the default VLAN configuration of the interface.


Restore the default VLAN configuration of an access interface.
<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] undo port default vlan

Restore the default VLAN configuration of a trunk interface.
<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] undo port trunk pvid vlan
[Huawei-Ethernet2/0/0] undo port trunk allow-pass vlan all
[Huawei-Ethernet2/0/0] port trunk allow-pass vlan 1

Restore the default VLAN configuration of a hybrid interface.
<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] undo port hybrid pvid vlan
[Huawei-Ethernet2/0/0] undo port hybrid vlan all
[Huawei-Ethernet2/0/0] port hybrid untagged vlan 1

END