Command
Login
Use
Enables authentication for console connections to router. Contrary to what it may sound like, the no login command will actually disable authentication to the console port on the router. This means that anyone will be able to access the router without having to provide a password.
Syntax
Router(config-line)#login
Example
In this example, login is enabled for console access on R2. Notice that a password is also set before using the login command.
R2#conf t |
The configuration for the console port is shown with login enabled.
R2(config-line)#do show run | sec con |
If a password is not set before using login, a message is displayed notifying that a password needs to be set before login becomes
active.
R2(config-line)#login |