Skip to main content

2.2.3: Line Mode Commands

From Global Configuration Mode after the prompt Switch(config)# enter:

LINE CONSOLE 0 or LINE VTY 0 15

Enters the console port (for users directly connected using a rollover cable and HyperTerminal) or Virtual Terminal port (for users using Telnet over the Ethernet interface), the prompt will change to Switch-A(Config-line)#

LOGIN

Forces a password prompt when a User (the same password will be applied to ALL users) tries to logon to the Switch and enter USER EXEC Mode

PASSWORD console

This will set a password name of console, which is case sensitive but NOT encrypted, so will be displayed in plain text in the configuration files

NO PASSWORD

Removes the password on the line

EXEC-TIMEOUT 30 0

This command sets the timeout figure to 30 (minutes) and 0 (seconds) of inactivity

EXEC-TIMEOUT 0 0 or NO EXEC-TIMEOUT

This will prevent the timeout of a user session on the LINE. This should NOT be used on a "live" Switch in a working environment.

NOTE: For security the Switches console will by default log out after 10 minutes of inactivity

LOGGING SYNCHRONOUS

This command will tell the Switch NOT to interrupt the output of a SHOW command with unsolicited messages providing you with the time to read the command output that is typed prior to other messages being displayed.

EXIT

Exits the LINE and returns the user back to Global Configuration Mode Switch-A(config)#