Setting Passwords

Setting Passwords
Here’s an example of setting all your passwords and then encrypting them in the plain configuration
file:
Todd#config t
Todd(config)#line aux ?
<0-0> First Line number
Todd(config)#line aux 0
Todd(config-line)#password aux
Todd(config-line)#login
Todd(config-line)#line con 0
Todd(config-line)#password console
Todd(config-line)#login
Todd(config-line)#exit
Todd(config)#line vty 0 ?
<1-1180> Last Line number

Todd(config)#line vty 0 1180
Todd(config-line)#password telnet
Todd(config-line)#login
Todd(config)#enable password todd
Todd(config)#enable secret globalnet
Todd(config)#service password-encryption
Todd(config)#do show run
Building configuration...
[outut cut]
!
enable secret 5 $1$S0a2$rLcwXpbme3zIrl2.TS1kX.
enable password 7 010709005F
!
[output cut]
!
line con 0
exec-timeout 1 40
password 7 050809013243420C
logging synchronous
login
line aux 0
password 7 03054E13
login
line vty 0 4
password 7 105A0C150B1206
login
line vty 5 1180
password 7 0010160A0A5E1F
login
!
[output cut]
Todd(config)#no service password-encryption
Some other console helpful commands include the following. This sets the console timeout
in second and minutes from 0-35791:
Todd(config-line)#exec-timeout ?
This redisplays interrupted console input:
Todd(config-line)#logging synchronous
Here’s an example of setting the exec-timeout and logging synchronous commands:
Todd)#config t
Todd(config)#line con 0
Todd(config-line)#exec-timeout ?
<0-35791> Timeout in minutes
Todd(config-line)#exec-timeout 0 ?
<0-2147483> Timeout in seconds

Todd(config-line)#exec-timeout 0 100
Todd(config-line)#logging synchronous