background image
Command-Line Interface
209
Encrypting Your Passwords
Because only the enable secret password is encrypted by default, you'll need
to manually configure the user-mode and enable passwords.
And notice that you can see all the passwords except the enable secret
when performing a show running-config on a router:
Router#sh running-config
[output cut]
!
enable secret 5 $1$rFbM$8.aXocHg6yHrM/zzeNkAT.
enable password todd1
!
[output cut]
line con 0
password todd1
login
line aux 0
password todd
login
line vty 0 4
password todd2
login
line vty 5 197
password todd2
login
!
end
Router#
To manually encrypt your passwords, use the service password-
encryption
command. Here's an example of how to do it:
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#service password-encryption
Router(config)#no service password-encryption
Router(config)#^Z
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com