line
To identify a specific line for configuration and enter line configuration collection mode, use the line command in global configuration mode. To remove configuration from a specific line, use the no form of this command.
line { con 0 | vty line-number }
no line { con 0 | vty line-number }
con 0 |
Console 0 terminal line. The console port is DCE. |
vty |
Virtual terminal line for remote console access. |
line-number |
Relative number of the virtual terminal line (or the first line in a contiguous group) that you want to configure when the line type is specified. Numbering begins with zero. You can either configure a single line or a range. |
Command Default
There is no default line.
Command Modes
Global configuration
Command History
Release |
Modification |
---|---|
Cisco IOS XE Release 17.2.1v |
Command qualified for use in Cisco vManage CLI templates. |
Usage Guidelines
For usage guidelines, see the Cisco IOS line command.
The terminal from which you locally configure the router is attached to the console port. To configure line parameters for the console port, enter the following:
line console 0
The following example starts configuration for virtual terminal lines 0 to 4:
line vty 0 4