O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

line — global

Synopsis

line [line-type] line-number [end-line-number]

Description

This command enters the line configuration mode. Valid line-types are aux, console, tty, or vty. If no line-type is given, the line-number is treated as an absolute line number. (See the results of a show line command to see absolute line numbers.)

The line-number is the number of the first line you want to configure. The end-line-number is the last line you want to configure. If you want to configure only a single line, omit end-line-number.

Example

The following commands set the password on lines 0 through 4, inclusive, and then set the connection speed on line 5.

! change the password on vty 0 4 to vtyin
line vty 0 4
  password vtyin
! Change the speed on tty 5
line tty 5
  speed 38400

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required