cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12424
Views
15
Helpful
5
Replies

what is the utility of login command ?

Hello everyone,

 

I'm studying my certification CCNA R&S and i'm asking the next question :

 

What is the utility of the 'login' command ?

 

I read topics who explains the login command but when i do a cisco lab i don't configure the login command in line vty and when I'm connecting in telnet, the password is require.

So with or without 'login' command I have the same result.
 
Thanks for your help.
 
Julien
 
5 Replies 5

InayathUlla Sharieff
Cisco Employee
Cisco Employee

If you dont specifify login you will not be asked to key in the username and password to login to the switch.

 

ex:-

Line con 0

login local  ---> Which means you will be prompted to enter the username and password which is been configured at privilege level before you get into the enable prompt.

 

line vty 0- 4

login x -- this will again specify to enter the credentials configured while doing the ssh/telnet.

 

HTH

Regards

Inayath

 Julien

 

The suggestions from Inayath is based on the assumption that your IOS device is configured with no aaa new-model. And this is correct that without aaa new-model and without the login command on the vty you will be able to login without being prompted for a password. But your description of the issue suggests that your configuration does include aaa new-model. Can you confirm that this is the case?

 

HTH

 

Rick

HTH

Rick

Hi,

 

In my case, there isn't configuration including aaa new-model.

 

So when i configure my switch like this :

line vty 0 4

password toto

 

I'm connecting in telnet session, and the password is required.

 

So when i configure my switch like this :

line vty 0 4

login

password toto

 

I've the same result.

 

It's for what, i'm asking in this case (i understand le login command in others cases) what the utility of this command?

 

Otherwise, thanks Inayath, Rick for your help.

 

 

 

Hi,

Then u need to define "login local"under line vty .

 

Hth

Inayath

***please do not forget to rate all usefull posts.

 

Hi,

 

I understand much better, and thank you for this precision.

 

Thank you both.

 

Julien