You can access the onboard configuration program by attaching a VT100 compatible
device to the switchs serial port. These commands are used to set communication
parameters for the serial port or a virtual terminal. Note that Telnet is considered
a virtual terminal connection, and the only commands that apply to Telnet include
exec-timeout and password-thresh.
Use this command to identify a specific line for configuration, and to process
subsequent line configuration commands.
Syntax
line {console | vty}
console - Console terminal line.
vty - Virtual terminal for remote console access.
Default Setting
There is no default line.
Command Mode
Global Configuration
Command Usage
This switch supports one console session, and up to four Telnet sessions.
Telnet is considered a virtual terminal connection and will be shown as
"Vty" in screen displays such as show users. However, the
serial communication parameters (e.g., databits) do not affect Telnet connections.
Example
To enter console line mode, enter the following command:
Use this command to enable password checking at login. Use the no form
to disable password checking and allow connections without a password.
Syntax
login [local] no login
local - Selects local password checking. Authentication is based
on the user name specified with the username command.
Default Setting
By default, virtual terminals require a password. If you do not set a password
for a virtual terminal, it will respond to attempted connections by displaying
an error message and closing the connection.
Command Mode
Line Configuration
Command Usage
If you specify login without the local option, authentication
is based on the password specified with the password line configuration
command.
Example
Console(config-line)#login
local Console(config-line)#
Use this command to specify the password for a line. Use the no form
to remove the password.
Syntax
password {0 | 7} password no password
{0 | 7} - 0 means plain password, 7 means encrypted password
password - Character string that specifies the line password. (Maximum
length: 8 characters plain text, 32 encrypted, case sensitive)
Default Setting
No password is specified.
Command Mode
Line Configuration
Command Usage
When a connection is started on a line with password protection, the system
prompts for the password. If you enter the correct password, the system shows
a prompt. You can use the password-thresh command to set the number
of times a user can enter an incorrect password before the system terminates
the line connection and returns the terminal to the idle state.
The encrypted password is required for compatibility with legacy password
settings (i.e., plain text or encrypted) when reading the configuration file
during system bootup or when downloading the configuration file from a TFTP
server. There is no need for you to manually configure encrypted passwords.
Use this command to set the interval that the system waits until user input
is detected. Use the no form to remove the timeout definition.
Syntax
exec-timeoutseconds no exec-timeout
seconds - Integer that specifies the number of seconds. (Range:
0 - 65535 seconds; 0: no timeout)
Default Setting
Console - No timeout
Telnet - 600 seconds (10 minutes)
Command Mode
Line Configuration
Command Usage
If no input is detected, the system resumes the current connection; or
if no connections exist, it returns the terminal to the idle state and disconnects
the incoming session.
This command applies to both the local console and Telnet connections.
The timeout for Telnet cannot be disabled.
Example
To set the timeout to two minutes, enter this command:
Use the password-thresh to set the password intrusion threshold which
limits the number of failed logon attempts. Use the no form
to remove the threshold value.
Syntax
password-threshthreshold no password-thresh
threshold - The number of allowed password attempts. (Range: 1-120;
0: no threshold)
Default Setting
The default value is three attempts.
Command Mode
Line Configuration
Command Usage
When the logon attempt threshold is reached, the system interface becomes
silent for a specified amount of time before allowing the next logon attempt.
Use the silent-time command to set this interval.
This command applies to both the local console and Telnet connections.
Example
To set the password threshold to five attempts, enter this command:
Use this command to set the amount of time the management console is inaccessible
after the number of unsuccessful logon attempts exceeds the threshold set by
the password-thresh command. Use the no form to remove the silent
time value.
Syntax
silent-timetime no silent-time
time - The number of seconds to disable console response. (Range:
0-65535; 0: no silent-time)
Default Setting
The default value is no silent-time.
Command Mode
Line Configuration
Command Usage
If the password threshold was not set with the password-thresh command,
silent-time begins after the default value of three failed logon attempts.
Example
To set the silent time to 60 seconds, enter this command:
Use this command to set the number of data bits per character that are interpreted
and generated by the console port. Use the no form to restore the default
value.
Syntax
databits {7 | 8} no databits
7 - Seven data bits per character.
8 - Eight data bits per character.
Default Setting
8 data bits per character
Command Mode
Line Configuration
Command Usage
The databits command can be used to mask the high bit on input from
devices that generate 7 data bits with parity. If parity is being generated,
specify 7 data bits per character. If no parity is required, specify 8 data
bits per character.
Use this command to set the terminal line's baud rate. This command sets both
the transmit (to terminal) and receive (from terminal) speeds. Use the no
form to restore the default setting.
Syntax
speedbps no speed
bps - Baud rate in bits per second. (Options: 9600, 57600, 38400,
19200, 115200 bps)
Default Setting
9600 bps
Command Mode
Line Configuration
Command Usage
Set the speed to match the baud rate of the device connected to the serial
port. Some baud rates available on devices connected to the port might not
be supported. The system indicates if the speed you selected is not supported.