FAQs
- How Can I Delete or Clear Configurations and Restore Factory Settings?
- How Can I Clear Interface Configurations with One Command?
- How Can I Reset the Console Port Password?
- How Can I Reset the Telnet Password?
- How Can I Specify the Unallocatable IP Addresses in an Address Pool?
- How Can I Configure the Lease?
- How Can I Specify Fixed IP Addresses Allocated to Clients?
How Can I Delete or Clear Configurations and Restore Factory Settings?
Back up the configuration file before restoring factory settings; otherwise, all configuration data will be deleted.
Restore the factory settings of a switch.
<HUAWEI> reset saved-configuration Warning: The action will delete the saved configuration in the device. The configuration will be erased to reconfigure. Continue? [Y/N]:y Warning: Now clearing the configuration in the device. Info: Succeeded in clearing the configuration in the device. <HUAWEI> reboot Info: The system is now comparing the configuration, please wait. Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:n Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'. System will reboot! Continue?[Y/N]:y
How Can I Clear Interface Configurations with One Command?
Run the clear configuration this command in the interface view or the clear configuration interface command in the system view. Then shut down the interface.
The interface shuts down after interface configurations are cleared. To enable the interface again, run the undo shutdown configuration.
How Can I Reset the Console Port Password?
If your Telnet account level is 3 or higher, you can log in to the switch from an operational terminal through Telnet to change the console port password.
<HUAWEI> system-view [HUAWEI] user-interface console 0 [HUAWEI-ui-console0] authentication-mode password [HUAWEI-ui-console0] set authentication password cipher Example@123 [HUAWEI-ui-console0] return
How Can I Reset the Telnet Password?
Log in to the switch through the console port to change the Telnet password. (AAA authentication is used in the example below.)
<HUAWEI> system-view [HUAWEI] aaa [HUAWEI-aaa] local-user user11 password irreversible-cipher Example@123
If you forget your user name, see Configuring the Management IP Address and Telnet to create a user name and reset the password.
How Can I Specify the Unallocatable IP Addresses in an Address Pool?
If some IP addresses in an address pool need to be reserved for certain services, such as DNS, these IP addresses must be excluded from the pool of allocable IP addresses. If these IP addresses are allocated by the DHCP server, IP address conflict may occur.
Configuration method:
Run this command in the interface or interface address pool view: dhcp server excluded-ip-address start-ip-address [ end-ip-address ]
Run this command in the global address pool view: excluded-ip-address start-ip-address [ end-ip-address ]
How Can I Configure the Lease?
By default, a lease expires after one day. In situations where a user is working away from their home or office, such as a café or airport, a short-term lease is recommended. In situations where users are primarily working from one location, long-term leases are recommended.
Configuration method:
Run this command in the interface or interface address pool view: dhcp server lease { day day [ hour hour [ minute minute ] ] | unlimited }
Run this command in the global address pool view: lease { day day [ hour hour [ minute minute ] ] | unlimited }
How Can I Specify Fixed IP Addresses Allocated to Clients?
Some important servers require fixed IP addresses, so you can specify the fixed IP addresses allocated to them.
These IP addresses must be in the IP address pool that can be dynamically allocated.
Configuration method:
Run this command in the interface or interface address pool view: dhcp server static-bind ip-address ip-address mac-address mac-address
Run this command in the global address pool view: static-bind ip-address ip-address mac-address mac-address [ option-template template-name ]
- How Can I Delete or Clear Configurations and Restore Factory Settings?
- How Can I Clear Interface Configurations with One Command?
- How Can I Reset the Console Port Password?
- How Can I Reset the Telnet Password?
- How Can I Specify the Unallocatable IP Addresses in an Address Pool?
- How Can I Configure the Lease?
- How Can I Specify Fixed IP Addresses Allocated to Clients?