How to restore default configurations or modify configurations on a port

17

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.

Other related questions:
How to restore the default VLAN configuration of an interface
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

How to modify default SSH and Telnet ports on U1980
The default SSH and Telnet ports on the U1900 series gateways cannot be modified.

Configure port isolation on the S1728GWR-4P switch
Configure port isolation on an S1728GWR-4P switch as follows: 1. Choose Security > Port Isolation. 2. Set Interface to Port or Trunk. 3. Enable or disable port isolation on a specified interface or trunk. 4. Click Apply to complete the configuration.

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 do I configure the default routing network port on the SC?
To configure the default routing network port on the SC, perform the following operations: 1. Run the system-view command to enter the system view. 2. Run the network-config command to enter the network-config view. 3. Run the default-route lan lan1/lan2/lan3 command to configure the default routing network port. 4. Log in to Huawei Enterprise Technical Support Website. 5. Enter SMC2.0 in the search box and click the SMC2.0 path displayed below the search box. 6. Find the SC Command Reference Guide of the corresponding version.

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