To set a hostname :

Router(config)#hostname  [name]


Set the enable password :

Router(config)#enable  password  [password]

Set the encrypted enable password :

Router(config)#enable  secret  [password]


Set a console password :

Router(config)#line  console  0
Router(config-line)#login
Router(config-line)#password  [password]

 

Set a telnet password(Virtual Terminal) :

Router(config)#line  vty  0  4
Router(config-line)#login
Router(config-line)#password  [password]

Note : If no password is set for vty then no one can Login into Router using vty.

 

To encrypt all the passwords :

Router(config)#service  password-encryption

To remove encryption :

Router(config)#no  service  password-encryption

Note : Removing encryption service does not decrypt the encrypted passwords.


Advertisements