cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1048
Views
0
Helpful
3
Replies

Changing Password in Cisco Switch & Router

damiranz20
Level 1
Level 1

Dear Sir,

Kindly send me How to change the password for my Cisco Devices:

Enable Secret & Telnet.

Thank You.

3 Replies 3

acampbell
VIP Alumni
VIP Alumni

Michael,

For the enable secret

conf t

!

enable secret NEW-WORD

!

For telnet

conf t

!

line vty 0 4

password NEW-WORD

!

*** On switches you may have up to 16 vty sessions

line vty 0 15

password NEW-WORD

!

Regards,
Alex.
Please rate useful posts.

Regards, Alex. Please rate useful posts.

Alex has given a good response which assumes that the original poster has not enabled aaa new-model. If aaa new-medel has been enabled then the telnet password is no longer the password configured on the vty. The result of enabling aaa new-model is equivalent to configuring login local and now the IOS will look for user ID and password to authenticate a telnet session. We also need to consider the possibility that the device has been configured with aaa authentication login in which the telnet password is determined by the parameters specified in the aaa authentication login command. And we need to consider the possibility that aaa authentication enable might have been configured in which case its parameters determine what password is used to authenticate login to enable mode.

So we need some clarification from the original poster about how the device is configured.

HTH

Rick

HTH

Rick

mariolebrun1
Level 1
Level 1

If you have the 9300 series Cisco switches you on boot you have to press the mode button 3 times. basically toggle on the button 3 times. 

 

Switch:

 

 

Add the following variables.

 

Switch: SWITCH_IGNORE_STARTUP_CFG=1

 

 

Then boot the switch.

 

 

Switch: boot

 

 

Once the switch has booted you can copy the saved config back into the running config.

 

 

Switch# copy start runn

 

 

Next set your password(s). Finally we want to remove the variables we set while in Boot Loader.

 

 

Switch# no system ignore startupconfig switch all

 

 

Save your new config.

 

Switch# copy runn start

 

 

For all the older models you must press and hold the button while the switch is booting up. 

 

Review Cisco Networking products for a $25 gift card