0% found this document useful (0 votes)
128 views3 pages

Huawei Router CLI Commands Guide

The document outlines the steps for resetting a router's password and managing user accounts through a command-line interface (CLI). It includes instructions for rebooting the router, accessing the password manager submenu, and modifying or clearing passwords. Additionally, it provides a list of Huawei CLI commands and details on creating a new user and restoring factory settings.

Uploaded by

melkamudesalew1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views3 pages

Huawei Router CLI Commands Guide

The document outlines the steps for resetting a router's password and managing user accounts through a command-line interface (CLI). It includes instructions for rebooting the router, accessing the password manager submenu, and modifying or clearing passwords. Additionally, it provides a list of Huawei CLI commands and details on creating a new user and restoring factory settings.

Uploaded by

melkamudesalew1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

********Password Reset Setp****************

1. reboot the router and press CTRL+B at startup


2. Main Menu

1. Default startup
2. Serial submenu
3. Ethernet submenu
4. Startup parameters submenu
5. File system submenu
6. Password manager submenu
7. DFX submenu
0. Reboot

Enter your choice(0-7):6


Password manager submenu

1. Modify bootloader password


2. Clear the console login password
3. Reset bootloader password
0. Return

Enter your choice(0-3):2


Caution: A new console password must be set after the [Link] now? Yes(y)
or No(n):y

Password:
Clear password for console user successfully.

Password manager submenu

1. Modify bootloader password


2. Clear the console login password
3. Reset bootloader password
0. Return

Enter your choice(0-3):1


Modify password. The password length must >= 8. Press Ctrl+c to break.
Old password:
Password not modify

Password manager submenu

1. Modify bootloader password


2. Clear the console login password
3. Reset bootloader password
0. Return

Enter your choice(0-3):0


Main Menu

1. Default startup
2. Serial submenu
3. Ethernet submenu
4. Startup parameters submenu
5. File system submenu
6. Password manager submenu
7. DFX submenu
0. Reboot
Enter your choice(0-7):0

*************Huawei CLI Commands*****************

arp Specify ARP configuration information


arp-ping ARP-ping
autosave <Group> autosave command group
backup Backup information
cd Change current directory
clear <Group> clear command group
clock Specify the system clock
cls Clear screen
compare Compare configuration file
copy Copy from one file to another
debugging <Group> debugging command group
delete Delete a file
diagnose Specify diagnose information
dialer Dialer
dir List files on a filesystem
display Display information
factory-configuration Factory configuration
format Format file system
free Release a user terminal interface
ftp Establish an FTP connection
gdoi Config IPSec Gdoi policy
help Description of the interactive help system
hwtacacs-user HWTACACS user
igmp Specify parameters for IGMP
license <Group> license command group
lldp Link Layer Discovery Protocol
local-user Add/Delete/Set user(s)
lock Lock the current user terminal interface
mkdir Create a new directory
more Display the contents of a file
move Move from one file to another
mpls MPLS parameters
mtrace Trace route to multicast source
ops OPS(Open Programmability System)
partition Partition the device
patch Patch operation
ping <Group> ping command group
pki Configure Public Key Infrastructure (PKI) module
information
power Power on or off operate
pwd Display current working directory
quit Exit from current mode and enter prior mode
reboot Reboot system
refresh Do soft reset
remove Remove device safely
rename Rename a file or directory
reset <Group> reset command group
return Enter the privileged mode
rmdir Remove an existing directory
rollback Active/standby mainboard rollback command
save <Group> save command group
schedule Schedule system task
screen-length Set the number of lines displayed on a screen
screen-width Set screen width
send Send information to other user terminal interfaces
set <Group> set command group
sslvpn Sslvpn
startup Config parameter for system to startup
super Modify super password parameters
system-view SystemView from terminal
telnet Open a telnet connection
terminal Set the terminal line characteristics
test-aaa Accounts test
tftp Establish a TFTP connection
trace Trace route (switch) to host on Data Link Layer
tracert <Group> tracert command group
undelete Restore deleted files or directory
undo Negate a command or set its defaults
unzip Unzip files or directory
upgrade Upgrade
zip Zip files or directory

************CREATE NEW USER**********************


[Huawei]aaa
[Huawei-aaa]local-user CBEADMIN password cipher !123$AB*G
[Huawei-aaa]save

[Huawei-aaa]display current-configuration

Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] authentication-mode password
[Huawei-ui-console0] set authentication password cipher huawei@123
[Huawei-ui-console0] return

Restore factory settings through the CLI.

Run the reset saved-configuration command to delete the content of the


configuration
files for next startup and cancel the configuration files for next startup so
that the default
router settings are restored.

Run the reboot fast command to restart the system

pki rsa local-key-pair create huawei exportable

Common questions

Powered by AI

The 'super' command allows the modification of super password parameters, typically providing access to privileged or higher administrative functions in the router's command interface. This command is critical for securing and controlling access levels within the router's operating environment .

The 'local-user' command, along with related commands, is fundamental for creating and managing user accounts with specific credentials (e.g., passwords). This allows for precise control over who can access the system, enhancing security by enforcing password policies and segregating user privileges .

To create a new directory, use the 'mkdir' command followed by the directory name. To list files in the directory, use the 'dir' command. This sequence allows users to organize files and verify their presence effectively .

The 'display current-configuration' command is crucial for reviewing current configurations before making changes. It helps in ensuring that any modifications or resets do not inadvertently remove necessary configurations and assists in debugging and validating system settings .

Establishing an FTP connection is beneficial for router management as it facilitates the transfer of files between the router and remote systems. This can be useful for uploading configuration files, updating software, or backing up critical data, enhancing efficiency and operational continuity .

To reset a console login password, first, reboot the router and press CTRL+B at startup to enter the main menu. Choose option 6 for the Password manager submenu, then option 2 to clear the console login password. You must agree to set a new password after the restart, by confirming 'Yes' when prompted. After this, the console password is cleared successfully .

To modify the bootloader password, the password length must be at least 8 characters as shown when selecting option 1 under the Password manager submenu . If the old password is not correctly entered, the modification will not proceed, ensuring the security of the bootloader access .

To restore factory settings, execute the command 'reset saved-configuration' to delete and cancel configuration files for the next startup. Then, use 'reboot fast' to restart the system, reverting the router to its default settings .

The 'undo' command is used to negate a command or set its defaults, allowing users to reverse or cancel previous configurations easily. This feature is essential for error correction and dynamic management of settings, thus providing flexibility in configuration management .

Setting terminal line characteristics, using the 'terminal' command, is significant because it controls how outputs and inputs are handled in the router interface. It allows customization of screen width, line display, and other parameters to improve user interface interaction and system debugging processes .

You might also like