background image
Command-Line Interface
207
Router(config)#line aux ?
<0-0> First Line number
Router(config)#line aux 0
Router(config-line)#login
Router(config-line)#password todd
It's important to remember the login command, or the auxiliary port
won't prompt for authentication.
Console Password
To set the console password, use the line console 0 command. But look...
when I tried to type line console 0 ? from the aux line configuration, I
received an error. You can still type line console 0 and it will accept it; but
the help screens just don't work from that prompt. Type exit to get back one
level and you'll find that your help screens now work. This is a "feature."
Router(config-line)#line console ?
% Unrecognized command
Router(config-line)#exit
Router(config)#line console ?
<0-0> First Line number
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password todd1
Since there is only one console port, I can only choose line console 0. You
can set all your line passwords to the same password, but for security reasons,
I'd recommend that you make them different.
Other Console Port Commands
There are a few other important commands to know for the console port.
For one, the exec-timeout 0 0 command sets the timeout for the console
EXEC session to zero, which means to never time out. The default timeout
is 10 minutes. (If you're feeling mischievous, try this on your friends at work:
Set it to 0 1. That will make the console time out in 1 second! And to fix it,
you have to continually press the Down arrow key while changing the time-
out time with your free hand!)
Logging
synchronous is a very cool command, and it should be a default
command, but it's not. What it does is stop annoying console messages from
popping up and disrupting the input you're trying to type, making your input
messages oh-so-much easier to read.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com