Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

To set password on privilege mode

Router(config)#enable pass 123

To set secret password


Router(config)#enable secret 125

To set password on console (user mode)


Router(config)#line c 0

Router(config-line)# login

Router(config-line)#pass 126

To enable telnet (by default terminals are 0-4 but we can extend it to 16)
Router(config)#line vty 0

Router(config-line)#login

Router(config-line)#pass 126

To enable telnet on multiple terminals


Router(config)#line vty 1 5

Router(config-line)# login

Router(config-line)#pass 124

To encrypt all password


Router(config)#service password-encryption

To remove password
Remove password from user mode

Router(config)#no enable pass

Router(config)#no enable secret

Remove password from usermode

Router(config)#line c 0

Router(config-line)#no login

Router(config-line)#no pass
To set user authentication
Router(config)#username test pri 1 pass 123

Router(config)#line c 0

Router(config-line)#login local

Router(config-line)#exit

To recover password
Press Ctrl+Pause Break key on keyboard at booting time

rommon 1 > confreg 0x2142

rommon 2 > reset

--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: no

Router>en

Router#copy start run

Destination filename [running-config]?

593 bytes copied in 0.416 secs (1425 bytes/sec)

R0#

R0#conf t

R0(config)#line c 0

R0(config-line)#no login

R0(config-line)#no pass

R0(config-line)#end

R0#

R0#copy run start

Destination filename [startup-config]?

Building configuration...

[OK]

R0#reload
Press Ctrl+Pause Break key on keyboard at booting time

rommon 1 > confreg 0x2102

rommon 2 > reset

You might also like