what is the utility of login command ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 06:10 AM - edited 03-08-2019 12:36 AM
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.
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 06:45 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 07:59 PM
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
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2015 12:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2015 02:50 AM
Hi,
Then u need to define "login local"under line vty .
Hth
Inayath
***please do not forget to rate all usefull posts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2015 02:55 AM
Hi,
I understand much better, and thank you for this precision.
Thank you both.
Julien
