?
Solved

Cisco switch password change and login is now different

Posted on 2010-11-23
3
Medium Priority
?
594 Views
Last Modified: 2012-05-10
Hi All,

I followed the below link to change a password for a user on our Cisco 4506e switch.  Specifically the following commands:  

Sw1(config)#line vty 0 15
Sw1(config-line)#password <new_vty_password>
Sw1(config-line)#login

The Link:
http://www.experts-exchange.com/Hardware/Networking_Hardware/Routers/Q_22468379.html

Now when I login I get the login screen from "Bad switch login.png" when I want the login screen from "good switch login.png".  

I used be able to add the username and password and be at the enabled prompt.  Now I have to add the password for the user with the changed password and then the enable password.  More importantly I can't login as any other user.  How can I revert back?

Thanks,
Chip
good-switch-login.PNG
Bad-switch-login.PNG
0
Comment
Question by:skarilla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
alvin602 earned 500 total points
ID: 34201390
Assuming you have your user accounts already set up, you will need to use the command "Logic Local" on all of the various lines (not "Login"), also remove the "password" line.  

If you have not created local user accounts, you will need to do so.  Without using any external authentication, you will have to create a local user database.  You can do so using the following command:

Sw1(config)#username [USERNAME] priv 15 password [PASSWORD]

The priviledge number determines how much access that user has on the system.  15 is full access, and 7 is moderate.  If 15 is used, you will go right to the enable prompt after login, if 7 is used you will have to manually enter enable mode after login.

Now you will have to enter the following command on all lines to specify access using a local databse:

Sw1(config)#line vty 0 15
Sw1(config-line)#login local


Hope that helps, it has been a while for me...
0
 
LVL 4

Expert Comment

by:ciscocert
ID: 34207167
Have you turned on the aaa new-model command? If using the aaa new model you need to create a local user database or u should have TACACS+ or RADIUS server for authentication. If u donot have the authenticatio servers you can use the local user database with the " login local " command under the line vty 0 as said by the alvin.
0
 
LVL 1

Author Comment

by:skarilla
ID: 34207417
Thanks Alvin602!

You are right on the money.  So if I wanted to change the password for USERX do I use this command...

To change telnet password
router(config)#line vty 0 15
router(config-if)#password newpassword

Thanks,
Chip
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question