Disabling Router Lines
Problem
You want to disable your router’s AUX port to help prevent unauthorized access.
Solution
To completely disable access via the router’s AUX port, use the following set of commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#line aux 0Router1(config-line)#transport input noneRouter1(config-line)#no execRouter1(config-line)#exec-timeoutRouter1(config-line)#0 1no passwordRouter1(config-line)#exitRouter1(config)#endRouter1#
You can disable access to the router through the VTY lines as follows:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list98deny any logRouter1(config)#line vtyRouter1(config-line)#0 4transport input noneRouter1(config-line)#exec-timeoutRouter1(config-line)#0 1no execRouter1(config-line)#access-class98inRouter1(config-line)#exitRouter1(config)#endRouter1#
Discussion
It is extremely important to secure access to your routers. The most effective way to secure router ports is to simply disable them if they aren’t needed. Of course, it isn’t always feasible to disable all router ports, but you can improve security by disabling any unused ones. For instance, network administrators rarely use the router’s AUX port, so they should consider disabling it. If your routers are physically close to the administrators so that remote access is not necessary, you might want to disable the VTY ports as well to provide ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access