Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Unable to reset vty settings

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,

  • LAN Switching and Routing
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Unable to reset vty settings

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

1 REPLY
Hall of Fame Super Silver

Unable to reset vty settings

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

2051
Views
0
Helpful
1
Replies