cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12758
Views
25
Helpful
4
Replies
Beginner

Difference between login and login local

So while configuring a line console 0, if I user login local command I am locked out of the switch!

What is the difference between "login local" and "login" commands? I tried this in packet tracer and every time I use the login local it asks for username that I havent setup.

Regards,

Ashish Kumar

4 REPLIES 4
VIP Advisor

login is used on vty and

login is used on vty and console and means that the password that is user for its authentication, is configured under vty and console as well.

Login local, means that authentication uses locally configured credentials using the 

username <joebloggs> privilege <15> secret 0 password    command in global configuration mode

Hope this helps

Please remember to rate useful posts, by clicking on the stars below.

Beginner

Re: login is used on vty and

Can you leave the privilege level out for the default value? Also, what does the zero define after secret?

 

Configuring Enhanced Security Password

Command
Purpose
Step 1

Router(config)# username name secret 0 password

 

or

Router(config)# username name secret 5 encrypted-secret

Configures a username and encrypts a clear text password with MD5 encryption.


Configures a username and enters an MD5 encrypted text string which is stored as

Beginner

Re: login is used on vty and

Hi Dennis,

 

 

I made a mistake while configuring router 4451 line console 0 by adding login local anwithout adding any command before for username ....pass  command. And now I am locked out of router and its asking for username and password. What should I do?

Highlighted
Beginner

Re: login is used on vty and

Hi Adeebtaqui,

 

Have you configured  vty line? If so, we can access the router using telnet / ssh rather than Console.

 

After logging in, either we can create local usernames and password or we can replace login local with login based on requirement.

 

Regards,

Selva

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.