How to restore the default VLAN configuration of an interface

12

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 configuration of an interface is as follows:
Access: The default VLAN is VLAN 1, and an access interface joins VLAN 1 in untagged mode.
Trunk: The default VLAN is VLAN 1, and a trunk interface joins VLAN 1 to VLAN 4094 in tagged mode. That is, a trunk interface allows all VLANs.
Hybrid: The default VLAN is VLAN 1, and a hybrid interface joins VLAN 1 in untagged mode.
Dot1q-tunnel: The default VLAN is VLAN 1, and a dot1q-tunnel interface joins VLAN 1.
Negotiation-auto or Negotiation-desirable: If the interface is negotiated as an access interface, the default VLAN configuration of the interface is the same as that of the access interface. If the interface is negotiated as a trunk interface, the default VLAN is VLAN 1 and the interface joins VLANs 1 to 4094 in tagged mode. That is, the interface allows all VLANs.
Run the display this include-default | include link-type command in the interface view to check the link type of the interface, and then perform one of the following configurations to restore the default configuration of the interface.

Restore the default VLAN configuration of an access or dot1q-tunnel interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port default vlan Restore the default VLAN configuration of a trunk interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port trunk pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port trunk allow-pass vlan all
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 1
Restore the default VLAN configuration of a hybrid interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid vlan all
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 1
Restore the default VLAN configuration of the Negotiation-auto or Negotiation-desirable interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port default vlan
[HUAWEI-GigabitEthernet0/0/1] undo port trunk pvid vlan
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan all

Other related questions:
How to restore default configurations or modify configurations on a port
1.To modify configurations on a port, you may first restore the default configurations on the port if non-default configurations exist. 2.Methods to restore the default configurations. In V100R006 and earlier versions, run the undo commands in the interface view to delete configurations one by one. [HUAWEI-GigabitEthernet0/0/2]display this interface GigabitEthernet0/0/2 //The following non-default configurations exist on the port. port link-type trunk //The port type is set to trunk. undo port trunk allow-pass vlan 1 //The port is removed from VLAN 1. port trunk allow-pass vlan 20 //The port is added to VLAN 20. [HUAWEI-GigabitEthernet0/0/2]port link-type access//The following information is displayed if you modify configurations on GE0/0/2. Error: Please renew the default configurations. //Restore the default configurations first. [HUAWEI-GigabitEthernet0/0/2]undo port trunk allow-pass vlan 20 //The port is removed from VLAN 20 [HUAWEI-GigabitEthernet0/0/2]port trunk allow-pass vlan 1 //The port is added to VLAN 1. In V200R001 and later versions, run the clear configuration interface GigabitEthernet 0/0/2 command in the system view to delete all configurations. After the command is executed, the port is shut down. You must run the undo shutdown command to start the port.

How can I configure the default VLAN ID of an interface on a CE switch
The default VLAN ID of interfaces is VLAN 1. # Set the default VLAN of an access interface to VLAN 3.
system-view
[~HUAWEI] vlan batch 3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type access
[*HUAWEI-10GE1/0/1] port default vlan 3
[*HUAWEI-10GE1/0/1] commit
# Set the default VLAN of a trunk interface to VLAN 4.
system-view
[~HUAWEI] vlan batch 4
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk pvid vlan 4
[*HUAWEI-10GE1/0/1] commit
# Set the default VLAN of a hybrid interface to VLAN 5.
system-view 
[~HUAWEI] vlan batch 5
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid pvid vlan 5
[*HUAWEI-10GE1/0/1] commit

How to restore the factory defaults of U1900
For U1900, access the config mode and run the su command to access the debug mode, and then run the restore database command. If the U2900 of V100R001C10 or later is used, log in to the CDE tool as the administrator user and run the ROL DATA command.

How can I restore a camera to factory defaults?
An IPC can be restored to factory defaults in one of the following ways: Method 1: Hold down the RESET button on the camera for over 3s. Method 2: Use PuTTY to log in to the camera as the admin user and run the rm -f /usr/log/config* and rm -f /usr/setting/config* commands. Then, run the reboot -f command to restart the camera. Note: To download the PuTTY installation package, visit http://www.ttyplus.com/. Method 3: Restore the camera to factory defaults on the camera web page. For details, see the Online Help of the required IPC model. Note: For details about the default password of the admin user, see the Online Help of the required IPC model.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top