cc/td/doc/product/software/ios103
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Terminal Lines and Modem Commands
absolute-timeout
activation-character
autobaud
autocommand
autohangup
autoselect
banner exec
banner incoming
banner motd
busy-message
databits
data-character-bits
default-value exec-character-bits
default-value special-character-bits
disconnect-character
dispatch-character
dispatch-timeout
escape-character
exec
exec-banner
exec-character-bits
exec-timeout
flowcontrol
hold-character
length
line
location
lockable
login (line configuration)
login authentication
login-string
modem answer-timeout
modem callin
modem callout
modem cts-required
modem dtr-active
modem in-out
modem ri-is-cd
notify
padding
parity
password
private
refuse-message
rotary
rxspeed
script activation
script connection
script reset
script startup
service linenumber
session-limit
session-timeout
show line
special-character-bits
speed
start-character
start-chat
stopbits
stop-character
telnet break-on-ip
telnet refuse-negotiations
telnet speed
telnet sync-on-break
telnet transparent
terminal-type
transport input
transport output
transport preferred
txspeed
vacant-message
width

Terminal Lines and Modem Commands


The line configuration commands described in this chapter are used to configure virtual terminal lines, the console port, and the auxiliary port.

For line configuration command descriptions, refer to the "Configuring Terminal Lines and Modem Support" chapter in the Router Products Configuration Guide.

The history line configuration command is described with other user interface commands in the "User Interface Commands" chapter of this manual. The access-class line configuration command, which applies an IP access list to a line, is described in the "Managing the System" chapter in the Router Products Configuration Guide.

The user-level EXEC commands that set terminal parameters for the duration of a session are documented in the Cisco Access Connection Guide.

absolute-timeout

To set the interval for closing the connection, use the absolute-timeout line configuration command. Use the no form of this command to restore the default.

absolute-timeout minutes
Syntax Description

minutes

Number of minutes after which the user's session is terminated.

Default

No timeout interval is automatically set.

Command Mode

Line configuration

Usage Guidelines

This command terminates the connection after the specified time period has elapsed, regardless of whether or not the connection is being used at the time of termination. You can specify an absolute timeout value for each port. The user is given 20 seconds' notice before the session is terminated. You can use this command with the logout-warning command, which notifies the user of an impending logout.


Note      You can set this command and an AppleTalk Remote Access (ARA) protocol time-out for the same line; however, this command supersedes any time-outs set in ARA protocol. Additionally, ARA protocol users receive no notice of any impending termination if this interval is set.


Example

The following example sets an interval of 60 minutes on line 5:

line 5
absolute-timeout 60
Related Command

session-timeout
logout-warning

activation-character

To define the character you type at a vacant terminal to begin a terminal session, use the activation-character line configuration command. Use the no form of this command to make any character activate a terminal.

activation-character ascii-number
no activation-character
Syntax Description

ascii-number

Decimal representation of the activation character.

Default

Return (decimal 13).

Command Mode

Line configuration

Usage Guidelines

See the "ASCII Character Set" appendix for a list of ASCII characters.


Note      If you are using autoselect, let the activation character default to Return and let the exec-character-bits command default to 7. If you change these defaults, the application does not recognize the activation request.


Example

The following example sets the activation character for the console to Delete, which is decimal 127:

line console
activation-character 127

autobaud

To set the line for automatic baud detection, use the autobaud line configuration command. Use the no autobaud command to restore the default.

autobaud
no autobaud
Syntax Description

This command has no arguments or keywords.

Default

No autobaud detection

Command Mode

Line configuration

Usage Guidelines

This command pertains to the auxiliary port only.

The autobaud detection supports a range from 300 to 19200 baud. A line set for autobaud cannot be used for outgoing connections. Nor can you set autobaud capability on a line using 19200 baud when the parity bit is set because of hardware limitations.

Example

The following example sets the auxiliary port for autobaud detection:

line aux 0
autobaud

autocommand

To configure the router to execute a command or list of commands automatically when a user connects to a particular line, use the autocommand line configuration command.

autocommand command
Syntax Description

command

Any appropriate EXEC command, including the host name and any switches that occur with the EXEC command.

Default

Automatic responses are not configured.

Command Mode

Line configuration

Usage Guidelines

This command applies to the auxiliary port only.

Example

The following example forces an automatic connection to a host named host21 (which could be an IP address). In addition, the UNIX UUCP application specifies TCP socket 25, and the /stream switch enables a raw TCP stream with no Telnet control sequences.

line vty 4
autocommand connect host21 uucp /stream

autohangup

To configure automatic line disconnect, use the autohangup line configuration command. The command causes the EXEC to issue the exit command when the last connection closes.

autohangup
Syntax Description

This command has no arguments or keywords.

Default

Disabled

Command Mode

Line configuration

Usage Guidelines

This command is useful for UNIX UUCP applications that automatically disconnect lines because UUCP scripts cannot issue the exit command to hang up the telephone.

Example

The following example enables automatic line disconnect on the auxiliary port:

line aux 0
autohangup

autoselect

To configure a line to start an ARA, Point-to-Point Protocol (PPP), or SLIP session, use the autoselect line configuration command. Use the no form of this command to disable this function on a line.

autoselect {arap | ppp | slip} | during-login
no autoselect
Syntax Description

arap

Configures the router to allow an ARA session to start up automatically.

ppp

Configures the router to allow a PPP session to start up automatically.

slip

Configures the router to allow a SLIP session to start up automatically.

during-login

(Optional) The user receives a username and/or password prompt without pressing the Return key. After the user logs in, the autoselect function begins.

Default

Configures the router to allow an ARA session to start up automatically.

Command Mode

Line configuration

Usage Guidelines

This command eliminates the need for users to enter an EXEC command to start an ARA, PPP, or SLIP session.


Note      SLIP does not support authentication. For PPP and ARA protocol, you must enable authentication.


The autoselect command configures the router to identify the type of connection being requested. For example, when a user on a Macintosh running ARA selects the Connect button, the router automatically starts an ARA protocol session. If, on the other hand, the user is running SLIP or PPP and uses the autoselect ppp or autoselect slip command, the router automatically starts a PPP or SLIP session, respectively. This command is appropriate for lines used to make different types of connections.

A line that does not have autoselect configured regards an attempt to open a connection as noise. Then when the router does not respond, the user client times out.


Note      After the modem connection is established, a Return is required to evoke a response such as the username prompt. You might need to update your scripts to include this requirement. Additionally, let the activation character default to Return, and the exec-character-bits default to 7. If you change these defaults, the application does not recognize the activation request.


Examples

The following example enables ARA on a line:

line 3
arap enable
autoselect arap

The following example enables PPP on a line:

line 7
autoselect ppp

The following example enables ARA on a line and allows logins from users with a modified CCL script and an unmodified script to log in:

line 3
arap enable
autoselect arap
autoselect during-login
arap noguest if-needed
Related Commands

ppp authentication chap
ppp authentication pap
arap use-tacacs
ppp use-tacacs

banner exec

To display a message on terminals with an interactive EXEC, use the banner exec global configuration command. This command specifies a message to be displayed on when an EXEC process is created (line activated, or incoming connection to VTY).

banner exec d message d
Syntax Description

d

Delimiting character of your choice—a pound sign (#), for example. You cannot use the delimiting character in the banner message.

message

Message text.

Default

Banners are not displayed.

Command Mode

Global configuration

Usage Guidelines

Follow the command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.

Example

The following example sets an EXEC message. The dollar sign ($) is used as a delimiting character.

banner exec $
Session activated. Enter commands at the prompt.
$
Related Commands

banner incoming
banner motd
exec-banner

banner incoming

To specify a message used when you have an incoming connection to a line from a host on the network, use the banner incoming global configuration command. An incoming connection is one initiated from the network side of the router. The EXEC banner can be suppressed on certain lines using the no exec-banner line configuration command. This line should not display the EXEC or MOTD banners when an EXEC is created.

banner incoming d message d
Syntax Description

d

Delimiting character of your choice—a pound sign (#), for example. You cannot use the delimiting character in the banner message.

message

Message text.

Default

No incoming banner is displayed.

Command Mode

Global configuration

Usage Guidelines

Follow the command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.

Example

The following example sets an incoming connection message. The pound sign (#) is used as a delimiting character.

banner incoming #
Welcome to Rhesus.
#
Related Commands

banner exec
banner motd
exec-banner

banner motd

To specify a message-of-the-day (MOTD) banner, use the banner motd global configuration command.

banner motd d message d
Syntax Description

d

Delimiting character of your choice—a pound sign (#), for example. You cannot use the delimiting character in the banner message.

message

Message text.

Default

Disabled

Command Mode

Global configuration

Usage Guidelines

Follow the command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.

This message-of-the-day banner is displayed to all terminals connected, and is useful for sending messages that affect all users; impending system shutdowns, for example.

The banner command without any keywords specified defaults to the banner motd command. When a new banner motd command is added to the configuration, it overwrites the existing banner command (no keyword specified). Similarly, if a banner command is added to the configuration, any exiting banner motd command is overwritten.

Example

The following example sets a message-of-the-day banner. The pound sign (#) is used as a delimiting character.

banner motd #
Building power will be off from 7:00 AM until 9:00 AM this coming Tuesday.
#
Related Commands

banner exec
banner incoming
exec-banner

busy-message

To create a "host failed" message that displays when a connection fails, use the busy-message global configuration command. Use the no busy-message command to disable the "host failed" message from displaying on the specified host.

busy-message hostname d message d
no busy-message hostname
Syntax Description

hostname

Name of the host that cannot be reached.

d

Delimiting character of your choice—a pound sign (#), for example. You cannot use the delimiting character in the message.

message

Message text.

Default

The "host failed" message is not displayed.

Command Mode

Global configuration

Usage Guidelines

This command applies only to Telnet connections.

Follow the busy-message command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.

Defining a "host failed" message for a host prevents all router-initiated user messages, including the initial message that indicates the connection is "Trying..." The busy-message command can be used in the autocommand command to suppress these messages.

Example

The following example sets a message that will be displayed on the terminal whenever an attempt to connect to the host named dross fails. The pound sign (#) is used as a delimiting character.

busy-message dross #
Cannot connect to host. Contact the computer center.
#

databits

To set the number of data bits per character that are interpreted and generated by hardware, use the databits line configuration command.

databits {5 | 6 | 7 | 8}
Syntax Description

5

Five data bits per character.

6

Six data bits per character.

7

Seven data bits per character.

8

Eight data bits per character.

Default

8 data bits per character

Command Mode

Line configuration

Usage Guidelines

This command pertains to the auxiliary port only.

The databits line configuration command can be used to mask the high bit on input from devices that generate 7 data bits with parity. If parity is being generated, specify 7 data bits per character. If no parity generation is in effect, specify 8 data bits per character. The other keywords are supplied for compatibility with older devices and generally are not used.

Example

The following example changes the data bits to 7 on the auxiliary port:

line aux 0
databits 7
Related Commands

Two daggers () indicate that the command is documented in the Cisco Access Connection Guide.

terminal data-character-bits
terminal databits

data-character-bits

To set the number of data bits per character that are interpreted and generated by software, use the data-character-bits line configuration command.

data-character-bits {7 | 8}
Syntax Description

7

Seven data bits per character.

8

Eight data bits per character.

Default

8 data bits per character

Command Mode

Line configuration

Usage Guidelines

The data-character-bits line configuration command is used primarily to strip parity from X.25 connections on IGS or Cisco 3000 routers with the protocol translation software option. The data-character-bits line configuration command does not work on hardwired lines.

Example

The following example sets the number of data bits per character for virtual terminal line 1 to 7:

line vty 1
data-character-bits 7

default-value exec-character-bits

To define the EXEC character width for either 7 bits or 8 bits, use the default-value exec-character-bits global configuration command.

default-value exec-character-bits {7 | 8}
Syntax Description

7

Selects the 7-bit ASCII character set.

8

Selects the full 8-bit ASCII character set.

Default

7-bit ASCII character set

Command Mode

Global configuration

Usage Guidelines

Configuring the EXEC character width to 8 bits allows you to add graphical and international characters in banners, prompts, and so forth. However, setting the EXEC character width to 8 bits can also cause failures. If a user on a terminal that is sending parity enters the command help, an "unrecognized command" message appears because the system is reading all 8 bits, although the eighth bit is not needed for the help command.

Example

The following example selects the full 8-bit ASCII character set for EXEC banners and prompts:

default-value exec-character-bits 8
Related Commands

Two daggers () indicate that the command is documented in the Cisco Access Connnection Guide.

default-value special-character-bits
exec-character-bits
special-character-bits
terminal exec-character-bits

terminal special-character-bits

default-value special-character-bits

To configure the flow control default value from a 7-bit width to an 8-bit width, use the default-value special-character-bits global configuration command.

default-value special-character-bits {7 | 8}
Syntax Description

7

Selects the 7-bit character set.

8

Selects the full 8-bit character set.

Default

7-bit character set

Command Mode

Global configuration

Usage Guidelines

Configuring the special character width to 8 bits allows you to add graphical and international characters in banners, prompts, and so forth.

Example

The following example selects the full 8-bit special character set:

default-value special-character-bits 8
Related Commands

Two daggers () indicate that the command is documented in the Cisco Access Connection Guide.

default-value exec-character-bits
exec-character-bits
special-character-bits
terminal exec-character-bits

terminal special-character-bits

disconnect-character

To define a character to disconnect a session, use the disconnect-character line configuration command. This command defines the character you enter to end a terminal session. Use the no disconnect-character command to remove the disconnect character.

disconnect-character ascii-number
no disconnect-character
Syntax Description

ascii-number

ASCII decimal representation of the session disconnect character.

Default

No disconnect character is defined.

Command Mode

Line configuration

Usage Guidelines

The Break character is represented by zero; NULL cannot be represented.

To use the session disconnect character in normal communications, precede it with the escape character. See the "ASCII Character Set" appendix for a list of ASCII characters.

Example

The following example sets the disconnect character for virtual terminal line 4 to Escape, which is ASCII character 27:

line vty 4
disconnect-character 27

dispatch-character

To define a character that causes a packet to be sent, use the dispatch-character line configuration command. Use the no dispatch-character command to remove the definition of the specified dispatch character.

dispatch-character ascii-number1 [ascii-number2 . . . ascii-number]
no dispatch-character ascii-number1 [ascii-number2 . . . ascii-number]
Syntax Description

ascii-number

ASCII decimal representation of the character, such as Return (ASCII decimal 13) for line-at-a-time transmissions.

Default

No dispatch character is defined.

Command Mode

Line configuration

Usage Guidelines

This dispatch-character command defines a dispatch character that causes a packet to be sent even if the dispatch timer has not expired. It causes the router to attempt to buffer characters into larger-sized packets for transmission to the remote host. The router normally dispatches each character as it is typed.

This command can take multiple arguments, so you can define any number of characters as dispatch characters.

Example

The following example specifies the Return character as the dispatch character:

line vty 4
dispatch-character 13
Related Command

dispatch-timeout

dispatch-timeout

To set the character dispatch timer, use the dispatch-timeout line configuration command. Use the no dispatch-timeout command to remove the timeout definition.

dispatch-timeout milliseconds
no dispatch-timeout
Syntax Description

milliseconds

Integer that specifies the number of milliseconds the router waits after putting the first character into a packet buffer before sending the packet. During this interval, more characters may be added to the packet, which increases the processing efficiency of the remote host.

Default

No dispatch timeout is defined.

Command Mode

Line configuration

Usage Guidelines

The dispatch-timeout line configuration command causes the router to buffer characters into packets for transmission to the remote host. The router sends a packet a specified amount of time after the first character is put in the buffer. The router normally dispatches each character as it is entered. You can use the dispatch-timeout and dispatch-character line configuration commands together. In this case, the router dispatches a packet each time the dispatch character is entered, or after the specified dispatch timeout interval, depending on which condition is met first.


Note      The router's response might appear intermittent if the timeout interval is greater than 100 milliseconds and remote echoing is used.


Example

The following example sets the dispatch timer to 80 milliseconds:

line vty 0 4
dispatch-timeout 80
Related Command

dispatch-characterr

escape-character

To define a system escape character, use the escape-character line configuration command. The no escape-character command sets the escape character to Break.

escape-character ascii-number
no escape-character
Syntax Description

ascii-number

Either the ASCII decimal representation of the character or a control sequence (Ctrl-E, for example). Ctrl-^ is the default.

Default

Ctrl-^

Command Mode

Line configuration

Usage Guidelines

The Break key cannot be used as an escape character on the console terminal because the operating software interprets Break as an instruction to halt the system. To send the escape character to the other side, press Ctrl-^ twice.

See the "ASCII Character Set" appendix for a list of ASCII characters.

Example

The following example sets the escape character to Ctrl-P, which is ASCII character 16:

line console
escape-character 16

exec

To allow an EXEC process on a line, use the exec line configuration command. The no exec command turns off the EXEC process for the line specified.

exec
no exec
Syntax Description

This command has no arguments or keywords.

Default

By default, the router starts EXECs on all lines.

Command Mode

Line configuration

Usage Guidelines

When you want to allow an outgoing connection only for a line, use the no exec command. When a user tries to Telnet to a line with the no exec command configured, the user will get no response when pressing the Return key at the login screen.

Example

The following example illustrates how to turn off the EXEC on line 7. You might want to do this on the auxiliary port if the attached device (for example, the control port of a rack of modems) sends unsolicited data to the router. An EXEC would start if this happened, making the line unavailable.

line 7
no exec

exec-banner

To control whether banners are displayed or suppressed, use the exec-banner line configuration command. This command determines whether the router will display the EXEC banner or the message-of-the-day (MOTD) banner when an EXEC is created. The no exec-banner command suppresses the banner messages.

exec-banner
no exec-banner
Syntax Description

This command has no arguments or keywords.

Default

By default, the messages defined with banner motd and banner exec commands are displayed on all lines.

Command Mode

Line configuration

Example

The following example suppresses the banner on virtual terminal lines 0 to 4:

line aux 0
no exec-banner
Related Commands

banner exec
banner motd

exec-character-bits

To configure the character widths of EXEC and configuration command characters, use the exec-character-bits line configuration command.

exec-character-bits {7 | 8}
Syntax Description

7

Selects the 7-bit character set.

8

Selects the full 8-bit character set for use of international and graphical characters in banner messages, prompts, and so forth.

Default

7-bit ASCII character set

Command Mode

Line configuration

Usage Guidelines

Setting the EXEC character width to 8 allows you to use special graphical and international characters in banners, prompts, and so forth. However, setting the EXEC character width to 8 bits can cause failures. If a user on a terminal that is sending parity enters the command help, an "unrecognized command" message appears because the system is reading all 8 bits, although the eighth bit is not needed for the help command.


Note      If you are using the autoselect command, set the activation-character to the default Return and exec-character-bits to the default 7. If you change these defaults, the application does not recognize the activation request.


Example

The following example allows full 8-bit international character sets by default, except for the console, which is an ASCII terminal. It illustrates use of the default-value exec-character-bits global configuration command and the exec-character-bits line configuration command.

default-value exec-character-bits 8
line 0
exec-character-bits 7
Related Commands

Two daggers () indicate that the command is documented in the Cisco Access Connection Guide.

default-value exec-character-bits
default-value special-character-bits
special-character-bits
terminal exec-character-bits

terminal special-character-bits

exec-timeout

To set the interval that the EXEC command interpreter waits until user input is detected, use the exec-timeout line configuration command. The no exec-timeout command removes the timeout definition.

exec-timeout minutes [seconds]
no exec-timeout
Syntax Description

minutes

Integer that specifies the number of minutes.

seconds

(Optional) Additional time intervals in seconds. An interval of zero specifies no time-outs.

Default

10 minutes

Command Mode

Line configuration

Usage Guidelines

If no input is detected, the EXEC resumes the current connection, or if no connections exist, it returns the terminal to the idle state and disconnects the incoming session.

The no version of this command has the same effect as the exec-timeout 0 command.

Examples

The following example sets a time interval of 2 minutes, 30 seconds:

line console
exec-timeout 2 30

The following example sets a time interval of 10 seconds:

line console
exec-timeout 0 10

flowcontrol

To set the method of data flow control between the terminal or other serial device and the router, use the flowcontrol line configuration command. To disable flow control, use the no form of this command.

flowcontrol {none | software [in | out] | hardware [in | out]}
no flowcontrol {none | software [in | out] | hardware [in | out]}
Syntax Description

none

Turns off flow control.

software

Sets software flow control. An optional keyword specifies the direction: in causes the router to listen to flow control from the attached device, and out causes the router to send flow control information to the attached device. If you do not specify a direction, both are assumed.

hardware

Sets hardware flow control. An optional keyword specifies the direction: in causes the router to listen to flow control from the attached device, and out causes the router to send flow control information to the attached device. If you do not specify a direction, both are assumed. For more information about hardware flow control, see the hardware installation and maintenance manual for your router.

Default

Flow control is disabled.

Command Mode

Line configuration

Usage Guidelines

This command pertains to the auxiliary port only.

When software flow control is set, the default stop and start characters are Ctrl-S and Ctrl-Q (XOFF and XON). You can change them with the stop-character and start-character commands.

Example

The following example sets hardware flow control on the auxiliary port:

line aux 0
flowcontrol hardware
Related Commands

start-character
stop-character

hold-character

To define the local hold character used to pause output to the terminal screen, use the
hold-character line configuration command. The no hold-character command restores the default.

hold-character ascii-number
no hold-character
Syntax Description

ascii-number

Either the ASCII decimal representation of the hold character or a control sequence (for example, Ctrl-P).

Default

No hold character is defined.

Command Mode

Line configuration

Usage Guidelines

The Break character is represented by zero; NULL cannot be represented. To continue the output, type any character after the hold character. To use the hold character in normal communications, precede it with the escape character. See the "ASCII Character Set" appendix for a list of ASCII characters.

Example

The following example sets the hold character to Ctrl-S, which is ASCII decimal 19:

line aux 0
hold-character 19
Related Command

Two daggers () indicate that the command is documented in the Cisco Access Connnection Guide.

terminal hold-character

length

To set the terminal screen length, use the length line configuration command.

length screen-length
Syntax Description

screen-length

Number of lines on the screen. A value of zero disables pausing between screens of output.

Default

24 lines

Command Mode

Line configuration

Usage Guidelines

Not all commands recognize the configured screen length. For example, the show terminal command assumes a screen length of 24 lines or more. The router software uses the value of this command to determine when to pause during multiple-screen output.

Example

The following example illustrates how to disable the screen pause function on the console terminal:

line console
terminal-type VT220
length 0

line

To configure a console port line, auxiliary port line, or virtual terminal lines, use the line global configuration command.

line [aux | console | vty] line-number [ending-line-number]
Syntax Description

aux

(Optional) Enables the auxiliary RS-232 DTE port. Must be addressed as relative line 0. The auxiliary port can be used for modem support and asynchronous connections.

console

(Optional) Specifies the console terminal line. The console port is DCE.

vty

(Optional) Specifies a virtual terminal for remote console access.

line-number

Specifies the relative number of the terminal line (or the first line in a contiguous group) you want to configure when the line type is specified. Numbering begins with zero.

ending-line-number

(Optional) Specifies the relative number of the last line in a contiguous group you want to configure. If you omit the keyword, then line-number and ending-line-number are absolute rather than relative line numbers.

Default

Lines are not configured.

Command Mode

Global configuration

Usage Guidelines

If you include one of the optional type keywords (aux, console, or vty), the line number is treated as a relative line number. If you enter the line command without an optional type keyword, the line number is treated as an absolute line number. Absolute line numbers increment consecutively and can be difficult to manage on large systems.

You can set communication parameters, specify autobaud connections, configure terminal operating parameters, and more for any of the terminal lines on the router.

The relative line number of the auxiliary port must be 0. See the modem line configuration command to set up modem support on the auxiliary port. The absolute line number of the auxiliary port is 1.

Virtual terminal lines are used to allow remote access to the router. A virtual terminal line is not associated with either the console or auxiliary port. You can address a single line or a consecutive range of lines with the line command. A line number is necessary, though, and you will receive an error message if you forget to include it.

Examples

The following example starts configuration for virtual terminal lines 0 to 4:

line vty 0 4

The following example configures the auxiliary port with a line speed of 2400 baud and enables the EXEC:

line aux 0
exec
speed 2400
Related Commands

Two daggers indicate that the command is documented in the Cisco Access Connection Guide.

show line
show users
all

location

To record the location of a serial device, use the location line configuration command. The no location command removes the description.

location text
no location
Syntax Description

text

Location description.

Default

Locations of serial devices are not recorded.

Command Mode

Line configuration

Usage Guidelines

The location command enters information about the device location and status. Use the EXEC command show users all to display the location information.

Example

The following example identifies the location of the console:

line console
location Building 3, Basement
Related Command

Two daggers () indicate that the command is documented in the Cisco Access Connection Guide.

show users all

lockable

To enable the EXEC command lock, use the lockable global configuration command The no lockable command reinstates the default, which does not allow the terminal to be locked.

lockable
no lockable
Syntax Description

This command has no arguments or keywords.

Default

Not lockable

Command Mode

Global configuration

Usage Guidelines

This command allows a terminal to be temporarily inaccessible by use of a temporary password.

Example

The following example sets the terminal to the lockable state:

lockable
Related Command

Two daggers () indicate that the command is documented in the Cisco Access Connection Guide.

lock

login (line configuration)

To enable password checking at login, use the login line configuration command. Use the no login command to disable password checking and allow connections without a password.

login [local | tacacs]
no login
Syntax Description

local

(Optional) Selects local password checking. Authentication is based on the username specified with the username global configuration command.

tacacs

(Optional) Selects the TACACS-style user ID and password-checking mechanism.

Default

By default, virtual terminals require a password. If you do not set a password for a virtual terminal, it will respond to attempted connections by displaying an error message and closing the connection.

Command Mode

Line configuration

Usage Guidelines

If you specify login without the local or tacacs option, authentication is based on the password specified with the password line configuration command.


Note      This command cannot be used with Authentication, Authorization, and Accounting (AAA)/TACACS+. Use the login authentication command instead.


Examples

The following example sets the password letmein on virtual terminal line 4:

line vty 4
password letmein
login

The following example illustrates how to enable the TACACS-style user ID and password-checking mechanism:

line 0
password mypassword
login tacacs
Related Commands

A dagger () indicates that the command is documented in another chapter.

enable password
password
username

login authentication

To enable AAA/TACACS+ authentication for logins, use the login authentication line configuration command. Use the no form of the command to return to the default.

login authentication {default | list-name}
no login authentication {default | list-name}
Syntax Description

default

Uses the default list created with the aaa authentication login command.

list-name

Uses the indicated list created with the aaa authentication login command.


Caution

If you use a list-name value that has not been configured with the aaa authentication login command, you will disable logins on this line.


Default

Login authentication uses the default set with aaa authentication login command. If no default is set, the local user database is checked. No authentication is performed on the console.

Command Mode

Line configuration

Usage Guideline

This command is a per-line command used with AAA, and specifies the name of a list of TACACS+ authentication processes to try at login. If no list is specified, the default list is used (whether or not it is specified in the command line). You create defaults and lists by using the aaa authentication login command. Note that entering the no version of login authentication has the same effect as entering the command with the default argument.

Before issuing this command, create a list of authentication processes by using the global configuration aaa authentication login command.

Examples

The following example specifies that the default AAA authentication is to be used on line 4:

line 4
login authentication default

The following example specifies that the AAA authentication list called MIS-access is to be used on line 7:

line 7
login authentication MIS-access
Related Command

aaa authentication login

login-string

To define a string of characters that the router sends to a host after a successful Telnet connection, use the login-string global configuration command. This command applies only to rlogin and Telnet sessions. The no login-string command removes the login string.

login-string hostname d message [%secp] [%secw] [%b] d
no login-string hostname
Syntax Description

hostname

Specifies the name of the host.

d

Sets a delimiting character of your choice—a pound sign (#) for example. You cannot use the delimiting character in the busy message.

message

Specifies the login string.

%secp

(Optional) Sets a pause in seconds. To insert pauses into the login string, embed a percent sign (%) followed by the number of seconds to pause and the letter "p."

%secw

(Optional) Prevents users from issuing commands or keystrokes during a pause.

%b

(Optional) Sends a Break character.

Default

No login strings are defined.

Command Mode

Global configuration

Usage Guidelines

Follow the command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character. To use a percent sign in the login string, precede it with another percent sign; that is, type the characters "%%." The options can be used anywhere within the message string.

Example

In the following example, the value %5p causes a 5-second pause:

login-string office #ATDT 555-1234
%5p hello
#

modem answer-timeout

To set the amount of time that the router waits for CTS after raising DTR in response to RING, use the modem answer-timeout line configuration command. The no form of this command reverts the router to the default value.

modem answer-timeout seconds
no modem answer-timeout
Syntax Description

seconds

Specifies the timeout interval in seconds.

Default

15 seconds

Command Mode

Line configuration

Usage Guidelines

This command applies to the auxiliary port only. It is useful for modems that take a long time to synchronize to the appropriate line speed.

Example

The following example sets the timeout interval to 20 seconds:

line aux 0
modem answer-timeout 20
Related Commands

modem callin
modem in-out

modem callin

To support dial-in modems that use DTR to control the off-hook status of the modem, use the modem callin line configuration command. In response to RING, the modem raises the DTR signal, which answers the modem. At the end of the session, the router lowers DTR, which disconnects the modem. The no form of this command disables this feature.

modem callin
no modem callin
Syntax Description

This command has no arguments or keywords.

Default

No modem control

Command Mode

Line configuration

Usage Guidelines

This command applies to the auxiliary port only.

Example

The following example causes the modem connected to the router to raise DTR in response to RING:

line aux 0
modem callin
Related Commands

modem answer-timeout
modem in-out

modem callout

To configure a line for reverse connections, use the modem callout line configuration command. The no form of this command disables this feature.

modem callout
no modem callout
Syntax Description