Console Port Access Commands
Use these commands to configure the console port.
You can use a serial cable to connect a management host directly to the console port of the switch.
configure (or config)
M4250
M4350
This command gives you access to the Global Config mode. You can also enter the abbreviated config. From the Global Config mode, you can configure a variety of system settings, including user accounts. From the Global Config mode, you can enter other command modes, including the Line Config, SSH Config, and Telnet Config modes.
| Format | configure |
| Mode | Privileged EXEC |
line console
M4250
M4350
This command gives you access to the Line Config mode (Config-line), which allows you to configure console port settings, and various SSH and Telnet settings. You can also configure console login and enable authentication.
| Format | line console |
| Mode | Global Config |
Command example:
(NETGEAR Switch)(config)#line console
(NETGEAR Switch)(Config-line)#
serial baudrate (Line Config)
M4250
M4350
This command specifies the communication rate of the terminal interface for a console connection. The supported rates are 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
| Default | 9600 |
| Format | serial baudrate {1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200} |
| Mode | Line Config |
no serial baudrate (Line Config)
This command sets the communication rate of the terminal interface for a console connection.
| Format | no serial baudrate |
| Mode | Line Config |
serial timeout (Line Config)
M4250
M4350
This command specifies the maximum connect time (in minutes) without console activity. A value of 0 indicates that a console can be connected indefinitely. The time range is 0 to 160.
| Default | 5 |
| Format | serial timeout 0-160 |
| Mode | Line Config |
no serial timeout (Line Config)
This command sets the maximum connect time (in minutes) without console activity.
| Format | no serial timeout |
| Mode | Line Config |
set sup-console
M4350
On an M4350 series switch, this command allows access to the full CLI from any stack member. By default, the primary management unit is allowed full CLI access. You can move full CLI access among the stack members, but at any time, only one stack member can access the management CLI. You can issue the command on the stack member or backup unit. After the console is transferred to the backup unit or to a stack member unit, access to the full CLI on the primary management unit is disabled to avoid multiple simultaneous CLI inputs. You can restore full access on the primary management unit by entering the command on the serial port of the primary management unit.
| Format | set sup-console |
| Mode | Privileged EXEC |
show serial
M4250
M4350
This command displays serial communication settings for the switch.
| Format | show serial |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Serial Port Login Timeout (minutes) | The time, in minutes, of inactivity on a serial port connection, after which the switch will close the connection. A value of 0 disables the timeout. |
| Baud Rate (bps) | The default baud rate at which the serial port will try to connect. |
| Character Size (bits) | The number of bits in a character. The number of bits is always 8. |
| Flow Control | Whether Hardware Flow-Control is enabled or disabled. Hardware Flow Control is always disabled. |
| Stop Bits | The number of Stop bits per character. The number of Stop bits is always 1. |
| Parity | The parity method used on the Serial Port. The Parity Method is always None. |