Password setting and encryption password of network equipment

Enter privileged mode encryption

enable (enter the privileged mode)
configure terminal (enter the global configuration mode)
enable secret password ******
(set the password that needs to be entered when entering the privileged mode, and this password has been encrypted in the configuration file and cannot be seen. If used enable password ******, the password you entered can be seen in the configuration file)
Ctrl + C (return to privileged mode)
show running-config (use this command to view the configuration file in privileged mode)
exit (disconnect Console)
enable (you need to enter the password when you re-enter the privileged mode)


Set login password
enable for the empty console
(if there is a password, enter the password to log in to the privileged mode)
conf t (enter the global configuration mode, which is the abbreviation of configure terminal)
line console 0 (enter the line configuration mode)
password ****** (settings Console password)
login (this command enables global login management on line console 0)


Set the login password for the remote virtual terminal
line vty 0 16 (line vty means virtual terminal, 0 15 means there are 16 virtual terminals from 0 to 15)
password ****** (set password)
login (set at login Enable)

(Finally)
Ctrl + C (Enter privileged mode)
show running-config (Look at our configuration)

(In the configuration file, press the space bar to find the two passwords you set, you will find that the passwords you set are all in plain text, without encryption)

How to encrypt?


Encrypted passwords
(The startup configuration and running configuration files display most passwords in clear text. To encrypt passwords, please use the service password-encryption global configuration command, which will lightly encrypt all passwords on the machine. The purpose of this command is to prevent unauthorized access. Authorized personnel view the password in the configuration file.)

(Enter the global configuration mode)
service password-encryption (Enter the command to encrypt the plaintext password.)
exit (Exit the global configuration mode and view the running configuration.)
show running-config (Verify whether it has been encrypted)


Set the warning slogan
(enter such as global mode)
banner motd "..." (Set the slogan in the colon, and then look at the console login interface, it will be displayed)

Guess you like

Origin blog.csdn.net/qq_41076531/article/details/88758010