03-13-2012 07:00 PM - edited 03-07-2019 05:32 AM
Hi guys,
I am having trouble resetting the 'line vty' settings for my switch. I have incorrectly configured the settings as follows and would like to change them back to default without resetting the entire switch. The current settings are:
Line vty 0 3
login local
line vty 4
login local
line vty 5
login local
line 6 15
login local
What i am trying to do is to put 'line vty 4' back to be included in the settings for 'line vty 0 4' and also want the same for 'line vty 5' to be added to 'line vty 6 15'. Can someone guide me as to how to reset these settings or add them together as requesetd.
When i try to run 'no line vty' i get an error that says 'you cannot erase lines 0 15' (or somethins along those lines)
Your help is appreciated
Regards,
Solved! Go to Solution.
03-13-2012 07:45 PM
Angelo
Usually when line vty 4 shows up in the config differently from vty 0 3 it is because there is something configured differently on vty 4. I do not see that in what you posted. Similarly when vty 5 shows up by itself it is usually because something is configured on it different from the vty 6 15. Are you sure that there is not something else that shows up in the output of show run for these vty lines?
One approach that might work (but since I have not used it on the vty lines I can not say from experience what it will do) would be to try this:
default line vty 0 4
default line vty 5 15
This might set them back to their default settings and get them to show up together as you want.
Another approach would be to use the command
line vty 0 4
and then to configure any and all parameters that you would like to apply to the vty lines. And then do the same with
line vty 5 15
HTH
Rick
03-13-2012 07:45 PM
Angelo
Usually when line vty 4 shows up in the config differently from vty 0 3 it is because there is something configured differently on vty 4. I do not see that in what you posted. Similarly when vty 5 shows up by itself it is usually because something is configured on it different from the vty 6 15. Are you sure that there is not something else that shows up in the output of show run for these vty lines?
One approach that might work (but since I have not used it on the vty lines I can not say from experience what it will do) would be to try this:
default line vty 0 4
default line vty 5 15
This might set them back to their default settings and get them to show up together as you want.
Another approach would be to use the command
line vty 0 4
and then to configure any and all parameters that you would like to apply to the vty lines. And then do the same with
line vty 5 15
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