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

telnet connection to a specific vty line

Hi,

is it possible to make a telnet connection to a specific vty line.

line vty 0 3

password cisco

!

line vty 4

password 123

If yes, how.

Thanks in advance

Joe

6 REPLIES

Re: telnet connection to a specific vty line

Hello Joe,

I thougt that this was possible but now I tested it and it appears not to work.

It is possible to connect to TTY-ines using a port-nr eq 2000 + linenumber

I found the referring URL: http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/dial_c/dcmodem.htm#8018

When I tested it, this appears not to work for VTY-lines. Therefore, I am afraid the answer will be: no. I'm sorry.

Leo

Bronze

Re: telnet connection to a specific vty line

When accessing the vty lines, the first available line will be used for a

new telnet session. So I guess you cannot choose which vty line you can use.

But to be able to make sure that a single vty line will always be available,

maybe for the router admin to always have an access, configure a single vty

(usually VTY 4) with an access-class permitting only the admin's terminal.

I hope this info makes sense.

Cisco Employee

Re: telnet connection to a specific vty line

no way to direct the telnet connection to specific vty lines. Now what is the goal behind that kind of setup? Let me know. Lets see if we can achive the same goal some other way.

New Member

Re: telnet connection to a specific vty line

Not that I know of. But if you find a way to do it, it would be real handy for telnet access to routers that I am using a telnet login and password for access from public ips! this would allow me to then access the router configs from home or when i'm traveling. Can do it now but I set up the sec vty line for config access. the first to allow access via dynamic access lists. but going to vty 3 or 4 would be better.

Bronze

Re: telnet connection to a specific vty line

You migh want to try the following:

line vty 3

password

rotary 3

then use the port option '3003' with your telnet command.

You might just add then your ACL.

HTH.

Re: telnet connection to a specific vty line

This question was posted in this forum, a few days/weeks back, and somebody had responded with the "rotary X" command. This does work, the connection will be forced to always connect to the specified vty number.

2986
Views
0
Helpful
6
Replies
CreatePlease to create content