Managing Network Devices
435
line vty 5 197
password 7 09463724B
login
!
end
Router#
Setting Passwords on a CLI-Based switch
To configure the usermode and enable mode passwords on a CLI-based
switch, enter enable mode by using the enable command and then enter glo-
bal configuration mode by using the config t command.
Once you are in global configuration mode, you can set the usermode and
enable mode passwords by using the enable password command. The
switch's output below shows the configuration of both the usermode and
enable mode passwords:
(config)#enable password ?
level Set exec level password
(config)#enable password level ?
<1-15> Level number
To enter the usermode password, use level number 1. To enter the enable
mode password, use level mode 15. Remember, the password must be at
least four characters but not longer than eight characters.
Usermode Password
The switch output below shows the usermode password being set and denied
because it is more than eight characters:
(config)#enable password level 1 toddlammle
Error: Invalid password length.
Password must be between 4 and 8 characters
Enable Password
The following output is an example of how to set both the usermode and
enable mode passwords on a CLI-based switch:
(config)#enable password level 1 todd
(config)#enable password level 15 todd1
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com