
3.9 Passwords and Privileges Commands
The following sections describe the password and privileges commands used to control access to different levels of the router:
•enable password
•password
•service
3.9.1 Enable Password
To set a local password to control access to various privilege levels, use the enable password command in global configuration mode. Use the no form of this command to remove the password requirement.
Router(config)# enable password ?
0Specifies an UNENCRYPTED password will follow
7Specifies a HIDDEN password will follow
LINE The UNENCRYPTED (cleartext) 'enable' password
Router(config)# enable password 0 <password>
Router(config)# exit
Router# write [memory file]
3.9.2 Password
To specify a password on a line, use the password command in line configuration mode. Use the no form of this command to remove the password.
Router(config)# line ?
console | Primary | terminal line |
vty | Virtual | terminal |
Router(config)# line console ? | ||
Line number |
Router(config)# line | console 0 | ||
? | |||
end |
| End current mode and change to enable mode | |
exit |
| Exit current mode and down to previous mode | |
help |
| Description of the interactive help system | |
no |
| Negate a command or set its defaults | |
password | Set a password | ||
quit |
| Exit current mode and down to previous mode | |
LINE | The UNENCRYPTED (cleartext) line password | ||
0 | Specifies an UNENCRYPTED line password will follow | ||
7 | Specifies a HIDDEN line password will follow | ||
| |||
Router# write ? |
| ||
file |
| Write to configuration file | |
memory |
| Write configuration to the file (same as write file) | |
terminal | Write to terminal |
Router# write file
Writing
Configuration saved to
Router#
30