cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1215
Views
4
Helpful
3
Replies

Setting console password in Layer 3

siewwei2004
Level 1
Level 1

Hi all, I have tried set enablepass in Layer 2 and it works. However, set enablepass does not work for Layer 3. I suppose we should use another command, but I am unable to find the correct command in Cisco website. Do any of you know the command to change the console password in Layer 3?

Layer 2

Set password (command to set console password)

Set enablepass (command to set Enable password)

Layer 3

What is the command here to set console password?

Enable secret <password> (command to set Enable password)

Thank you so much!

1 Accepted Solution

Accepted Solutions

At first I was very confused about the question asking about layer 2 passwords and layer 3 passwords. Then I realized that it was asking about setting passwords on switches (layer 2 devices) and setting passwords on routers (layer 3 devices).

While a switch has just 2 passwords (a login password and an enable password) a router is somewhat more complex and has more options for passwords. As the previous responses have pointed out there are login passwords for the console and for the vty ports. And there is an enable password and also an enable secret password.

to configure these passwords use these commands

configure terminal

line console 0

! set the console password

password

line vty 0 4

! set the vty password

password

login

!

! set the enable password

enable password

! set the enable secret

enable secret

HTH

Rick

HTH

Rick

View solution in original post

3 Replies 3

frennzy
Level 1
Level 1

You have set a console password, but that does not apply to a telnet session.

If I am correct in assuming you want to set a telnet password to the device (layer 3), then you need to do the following:

Router(config)#line vty 0 4

Router(config-line)#login

Router(config-line)#password cisco

This will give you up to 5 telnet sessions to a virtual terminal (vty), with the password you supply.

Make sure to use the service password encryption command as well.

If I am misunderstanding, please post back and let me know.

jon.whitear
Level 1
Level 1

You need to configure your console to require a login, and then configure the password:-

configure terminal

line con 0

login

password

^Z

Looks like you beat me to it!

At first I was very confused about the question asking about layer 2 passwords and layer 3 passwords. Then I realized that it was asking about setting passwords on switches (layer 2 devices) and setting passwords on routers (layer 3 devices).

While a switch has just 2 passwords (a login password and an enable password) a router is somewhat more complex and has more options for passwords. As the previous responses have pointed out there are login passwords for the console and for the vty ports. And there is an enable password and also an enable secret password.

to configure these passwords use these commands

configure terminal

line console 0

! set the console password

password

line vty 0 4

! set the vty password

password

login

!

! set the enable password

enable password

! set the enable secret

enable secret

HTH

Rick

HTH

Rick