Q about switch command

Answered Question
May 20th, 2007

Hello everyone ,I am new to ccna,I have a problem about a switch command in the book: Switch(config)#line console 0

Switch(config-line)# password XXXXX means to setup a password for the line cnsole 0? means next time I time Switch(config)#line console 0 the system will need a password? but after I setup the password the system still doesn't need the password to access line console. why?

Correct Answer by mohammedmahmoud about 9 years 9 months ago

Hi,

Like SSLIN said, the command "login" under the con, aux or VTYs instructs the router to use the password configured under the line to be used for access control, and also when using "no login" the router won't ask for password and will login without asking for a password.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

Correct Answer by CSCO10892433 about 9 years 9 months ago

Hi, tinyue998

Please add one more command under the config-line mode, like this:

Switch(config-line)#login

Then, it should work.

HTH

SSLIN

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
CSCO10892433 Sun, 05/20/2007 - 21:54

Hi, tinyue998

Please add one more command under the config-line mode, like this:

Switch(config-line)#login

Then, it should work.

HTH

SSLIN

Correct Answer
mohammedmahmoud Sun, 05/20/2007 - 22:51

Hi,

Like SSLIN said, the command "login" under the con, aux or VTYs instructs the router to use the password configured under the line to be used for access control, and also when using "no login" the router won't ask for password and will login without asking for a password.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

Actions

This Discussion