04-03-2008 05:11 PM - edited 03-05-2019 10:10 PM
When configuring vty lines on a router is it mandatory to use the login command or can we use the telnet connection with just configuring the password alone w/o the login command?
04-03-2008 05:23 PM
By default 'login' is enabled under VTY lines with most, if not all, IOS versions. Therefore, if you just enter the password the router should prompt for password. If you don't want the user to be prompted for a password challenge then 'no login' under the VTY line would take care of that.
HTH
Sundar
04-03-2008 08:00 PM
Howard
Sundar has taken one approach to answering your question and I think his answer is quite correct. I would like to take a slightly different approach to answering your question.
You ask: can we use the telnet connection with just configuring the password alone w/o the login command?
I would respond that if the VTY do not have the login command then it does not matter whether you configure a password or not. If the login command is not configured on the VTY lines then they will not prompt for and will not require any password to login. If the login command is not configured on the VTY lines then any telnet request is accepted and goes directly into user mode.
So I would also respond that you either need to have both login command and password command or you do no need to have either.
Configuring the VTY lines with the password command but not the login command will not work as you expect it to.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide