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

password — line

Synopsis

password value
no password value

Configures

A login password for the line

Default

No password

Description

This command allows you to assign a password to any available line. Most lines must also be configured with the login command.

Example

The following example sets the login password to cisco for the console and the five VTY lines.

! First the console
line con 0
 password cisco
 login
! And the five virtual terminals (for incoming telnets)
line vty 0 5
 password cisco
 login

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