10-16-2014 06:31 AM
I am trying to configure telnet vty password using netconfig. I want to make the configuration only for line vty 0-4 however I am not able to find a way to define the line numbers. Moreover it also has the login command added by itself.
The default configuration it shows is as follows -
line vty 0 %MAXLINENUMBER%
password *******
login %authentication default%
exit
And how I want to configure is as follows -
line vty 0 4
password *******
exit
Please suggest if there is any way.
Solved! Go to Solution.
10-17-2014 01:00 AM
Hi Soniya
Your're quite correct, in thinking that this might not work. But lucky for you - it does work.
Simply paste the whole config you need in the ad-hoc tasks and deply it.
Like this:
line vty 0 4
password cisco12345
login
That's it, - no need to add "exit" either.
hope it helps. cheers.
Pierre
10-16-2014 08:58 AM
Try to select the Adhoc task under General where you dont have to configure as per a predefined template, instead you can configure your own CLI command lines to be deployed on device.
-Thanks
Vinod
10-16-2014 11:12 PM
Thanks Vinod for the suggestion. However, I had checked the adhoc option as well. In adhoc I have options to configure commands in enable mode or config mode but for vty I need to enter the line mode before i give the password command. Or may be I miss something here.
Regards,
Soniya
10-17-2014 01:00 AM
Hi Soniya
Your're quite correct, in thinking that this might not work. But lucky for you - it does work.
Simply paste the whole config you need in the ad-hoc tasks and deply it.
Like this:
line vty 0 4
password cisco12345
login
That's it, - no need to add "exit" either.
hope it helps. cheers.
Pierre
10-17-2014 08:14 AM
Thanks Pierre. It worked :)
Soniya
10-17-2014 08:45 AM
Great to know it worked. I was sure you can simply configure it without thinking of submode.
-Thanks
Vinod
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: