Configure the Line Level Password
router(config) #
line console 0 line aux 0
• Enters line configuration mode (console, auxiliary, or vty)
router(config-line)#
login
• Enables password checking at login router(config-line)# password password
• Sets the line-level password
Boston(config)#line con 0 Boston(config-line)#login Boston(config-line)#password ConUser1
Boston(config)#line con 0 Boston(config-line)#login Boston(config-line)#password ConUser1
Console Port
By default, the Cisco router console ports allow a hard BREAK signal (within 60 seconds of a reboot) to interrupt the normal boot sequence and give the console user complete control of the router. This is used for maintenance purposes, such as when running the Cisco router password recovery procedure. Even though this hard BREAK sequence is, by default, available to someone who has physical access to the router console port, it is still important to set a linelevel password for users who might try to gain console access remotely. The hard BREAK sequence may be disabled using the no service password-recovery command.
Note If a router is configured with the no service password-recovery command, all access to the ROM Monitor (ROMMON) is disabled.
By default, the console port does not require a password for console administrative access. However, you should always configure a console port line-level password. There are two ways to configure a console line password: You can enter the password during the initial configuration dialog, or you can use the password command in the console line configuration mode.
VTY Lines
Cisco routers support multiple Telnet sessions (up to five simultaneous sessions, by default— more can be added), each serviced by a logical vty. By default, Cisco routers do not have any line-level passwords configured for these vty.
5-90 Implementing Secure Converged Wide Area Networks (ISCW) v1.0
If you enable password checking, you must also configure a vty password before attempting to access the router using Telnet. If you fail to configure a vty password, and password checking is enabled for vty, you will encounter an error message similar to the following:
Telnet 10.0.1.2
Password required, but none set
[Connection to 10.0.1.2 closed by foreign host]
There are two ways to configure a vty password: You can enter the password during the initial configuration dialog, or you can use the password command in line vty configuration mode.
The following are a few more things to consider when securing Telnet connections to a Cisco router:
■ If you fail to set an enable password for the router, you will not be able to access privileged-EXEC mode using Telnet. Use either the enable password or enable secret password command to set the enable password for your routers.
■ Telnet access should be limited only to specified systems by building a simple access control list (ACL) that does the following:
— Allows Telnet access from specific hosts only
— Implicitly or explicitly blocks access from untrusted hosts
— Ties the ACL to the vty lines using the access-class command
— This example shows ACL 30 restricting Telnet access only from host 10.0.1.1 and implicitly denying access from all other hosts for vty 0 to 4:
Boston(config)#access-list 30 permit 10.0.1.1 0.0.0.0 Boston(config)#line vty 0 4 Boston(config-line)#access-class 30 in
■ You must configure passwords for all of the vty lines on the router. Remember that you can add more vty lines to the router and these lines must be protected as well as the default 0 to 4 lines.
Auxiliary Lines
By default, Cisco router auxiliary ports do not require a password for remote administrative access. Administrators sometimes use auxiliary ports to remotely configure and monitor the router using a dialup modem connection.
Unlike console and vty passwords, the auxiliary password is not configured during the initial configuration dialog and should be configured using the password command in auxiliary line configuration mode.
If you wish to turn off the EXEC process for the aux port, use the no exec command within the auxiliary line configuration mode.
Setting the auxiliary line-level password is only one of several steps you must complete when configuring a router auxiliary port for remote dial-in access. The table explains commands used when configuring an auxiliary port.
© 2006 Cisco Systems, Inc. Cisco Device Hardening 5-91
Commands to Configure an Auxiliary Port
|
Command |
Explanation |
|
Boston(config)#line aux 0 Boston(config-line)#modem inout |
Permits incoming and outgoing modem calls on this line |
|
Boston(config-line)#speed 9600 |
Sets the line speed that should be used to communicate with the modem |
|
Boston(config-line)#transport input all |
Allows all protocols to use the line |
|
Boston(config-line)#flowcontrol hardware |
Enables Ready to Send (RTS) and Clear to Send (CTS) flow control |
|
Boston(config-line)#login |
Authenticates incoming connections using the password configured on the line |
|
Boston(config-line)#password NeverGuessMeAux |
Configures the password NeverGuessMeAux to authenticate incoming calls on this line |
5-92 Implementing Secure Converged Wide Area Networks (ISCW) v1.0
Continue reading here: The no service passwordrecovery command prevents console from accessing ROMMON
Was this article helpful?
Readers' Questions
-
Callisto9 months ago
- Reply
-
bisrat1 year ago
- Reply
-
nannie1 year ago
- Reply
-
Jonne1 year ago
- Reply
-
bacco1 year ago
- Reply