cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12161
Views
8
Helpful
3
Replies

line vty 0 4 & 5 15

chinpohpang851
Level 1
Level 1

From my understanding line vty 0 15 allows 16 concurrent users to access the device simultaneously, is that correct? When I configure vty 5 15 for telnet access and I leave 0 4 untouched, telnet was failed. I have to configure vty 0 15 input telnet then I'll able to access the switch. I guess I'm the only person accessing via telnet so I'm getting line vty 0 right? Can I access remotely with prefered vty line and how do I do that?

3 Replies 3

devils_advocate
Level 7
Level 7

Yes 16 concurrent connections.

The 17th attempt will fail.

Bear in mind, if you do not have a timeout set on the VTY lines and you do not exit the switch properly, i.e you just close the terminal window then you may end up with sessions in use which are no longer being used.

When you connect via SSH or Telnet to a switch, it should use line 0 by default unless that line is in use. It will then use the next available line and count upwards etc.

I don't think there is a way to dictate which line to use.

Why do you ask out of interest?

Because I saw a post in this forum(search frm Google), some1 said they use 0 4 for junior staff and 5 15 for senior admin, So I was wondering how to do that. Thanks for the info about exec-timeout

 

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

BTW, another method to avoid hung VTY sessions is to enable service tcp-keepalives-in.