Reserving a VTY Port for Administrative Access
Problem
You want to prevent all of your VTY lines from being used up, effectively locking you out of the router.
Solution
You can ensure that at least one VTY port is available to you for access at all times with the following commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list9permitRouter1(config)#172.25.1.1line vtyRouter1(config-line)#4access-class9inRouter1(config-line)#exitRouter1(config)#endRouter1#
You can also reserve a particular inbound telnet port for administrator access by assigning VTY(s) into a rotary group by using the rotary command:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list9permitRouter1(config)#172.25.1.1line vtyRouter1(config-line)#5 7rotaryRouter1(config-line)#25access-class9inRouter1(config-line)#exitRouter1(config)#endRouter1#
Discussion
Receiving the dreaded “Connection Refused” message from one of your routers can be quite distressing, particularly if you’re trying to troubleshoot a serious problem. Generally, it means that other sessions have control of all of your router’s limited number of VTY lines. However, it can also mean that someone has launched a Denial of Service (DoS) attack. DoS attacks against router VTYs are simple to launch. Just sitting at a login prompt is enough to tie up a VTY line. This means that you don’t need a username or ...