Solved

Change Cisco 2960 login account

Posted on 2014-01-23
6
427 Views
Last Modified: 2014-01-29
Hi,

I have several Cisco 2960 switches, which i can access remotely. Now I need to change the login details and the enable password.

Can it be done remotely, or do i have to connect via console port? What are the command to do this?

Thanks!
0
Comment
Question by:SvenIA
[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
6 Comments
 
LVL 3

Accepted Solution

by:
Paul 1 earned 300 total points
ID: 39802343
to change the enable password

Router>enable
Router#configure terminal
Router(config)#enable password mypassword

press "CTRL-Z"
write
0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 39802981
Can it be done remotely, or do i have to connect via console port? What are the command to do this?
As long as you have telnet, ssh or SDM access from your remote location, you would use the same commands as if you were local.
0
 
LVL 11

Expert Comment

by:Miftaul
ID: 39803032
Can it be done remotely, or do i have to connect via console port?
Definitely you can. You can not rename an account name at one go. First create a new user account remotely. Then logon using that account and remove the previous account.

What are the command to do this?
To create new account UserA to be used with telnet/SSH,
R1(Config)#username UserA privilege 15 secret UserAPassword
R1(Config)#line vty 0 4
R1(Config-line)#login local
R1(Config-line)#transport input ssh telnet
R1(Config-line)# exec-timeout 5 0
R1(Config-line)#exit

Open in new window

To change enable password
R1(Config)#enable secret MyPassword
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 12

Expert Comment

by:Infamus
ID: 39803896
Also, I would open another SSH session to test the new login before exiting the current session just to be safe.
0
 
LVL 46

Assisted Solution

by:Craig Beck
Craig Beck earned 200 total points
ID: 39809047
Really it depends how admin authentication is configured on the switches, but the enable password/secret can be changed just by using the command posted by Paul1.

If you're using line passwords:

line vty 0 4
 password <password>

Open in new window


If you're using local authentication:

username <username> privilege <privilege-level> password <password>

Open in new window

0
 
LVL 7

Author Closing Comment

by:SvenIA
ID: 39817357
Thanks guys. With your information i changed the local and the enable password;

Local login: username local privilege 2 secret <password>

Enable password: enable secret <password>
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The worst thing when starting a new job is when the previous Network Administrator left behind no documentation. How do you get into the devices? If you've been in this situation or just accidently mistyped your password, this article will hopefully…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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