Change console line behaviors such as timeouts and allowed protocols to enhance manageability and security.
Modify the console line template when you need to adjust session-related parameters for users who access the device via the console port. This may include setting session limits, timeouts, or specifying permitted transport protocols.
Procedure
-
Access the console line configuration
Example:
Router#configure
Router(config)#line console
-
Set the exec timeout to unlimited.
Example:
Router(config-line)#exec-timeout 0 0
-
Define the escape character as hexadecimal 0x5a.
Example:
Router(config-line)#escape-character 0x5a
-
Set the session limit to 10
Example:
Router(config-line)#session-limit 10
-
Set the disconnect character to hexadecimal 0x59.
Example:
Router(config-line)#disconnect-character 0x59
-
Set the session timeout value to 100.
Example:
Router(config-line)#session-timeout 100
-
Allow only Telnet for input and output connections.
Example:
Router(config-line)#transport input telnet
Router(config-line)#transport output telnet
Router(config-line)#commit
-
Verify the updated console line template settings.
Example:
Router#show line console location 0/0/CPU0
The console line template is updated with the specified settings, applying the new attributes for future console sessions.