line vty (line mode)

Use this command to move or change to VTY mode. This command is used to connect to a protocol daemon. This configuration is necessary for any session. This configuration should be in the daemon's config file before starting the daemon.

Use the no parameter to disable this command.

line vty is just a mode changing command, and it can't exist without sub attributes being configured. i.e exec-timeout.

Command Syntax

Copy
line vty <0-871> <0-871>
no line vty <0-871> (<0-871>|)

Parameters

<0-871>

Specify the first line number.

<0-871>

Specify the last line number.

Configurations (exec-timeout) performed under this mode, affects only the current VTY session.

Default

None

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

The following example shows entering line mode (note the change in the prompt).

Copy
#configure terminal
(config)#line vty 9
(config-line)#exit
(config)no line vty 9