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
|
1. |
Access the console line configuration
Example:
Router#configure
Router(config)#line console
|
|
2. |
Set the exec timeout to unlimited.
Example:
Router(config-line)#exec-timeout 0 0
|
|
3. |
Define the escape character as hexadecimal 0x5a.
Example:
Router(config-line)#escape-character 0x5a
|
|
4. |
Set the session limit to 10
Example:
Router(config-line)#session-limit 10
|
|
5. |
Set the disconnect character to hexadecimal 0x59.
Example:
Router(config-line)#disconnect-character 0x59
|
|
6. |
Set the session timeout value to 100.
Example:
Router(config-line)#session-timeout 100
|
|
7. |
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
|
|
8. |
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.