02-28-2005 07:07 PM - edited 03-02-2019 09:55 PM
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!
Solved! Go to Solution.
02-28-2005 08:07 PM
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
02-28-2005 07:22 PM
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.
02-28-2005 07:23 PM
You need to configure your console to require a login, and then configure the password:-
configure terminal
line con 0
login
password
^Z
02-28-2005 08:07 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide