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?
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,
Please add one more command under the config-line mode, like this:
Then, it should work.