Name

disconnect-character — line

Synopsis

disconnect-character ascii-number
no disconnect-character

Configures

The character to use to disconnect a session

Default

None

Description

This command defines the character that a user types to end an interactive session. As with the activation-character command, the ascii-number is the decimal value of the desired character.

Example

In this example, we set the disconnect character to control-D, which is ASCII number 4, and we inform the users with a banner message.

Router(config)# line 2

Router(config-line)# activation-character 13
Router(config-line)# disconnect-character 4
Router(config-line)# vacant-message #
Router(config-line)#               ***** Welcome to Sphinx *****
Router(config-line)#    Press the return key to start the connection
Router(config-line)#    Disconnect with a control-D key
Router(config-line)# #

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.