Telnet Commands

Use these commands to configure and view Telnet settings.

You can use Telnet to manage the device from a remote management host.

ip telnet server enable

M4250

M4350

Use this command to enable Telnet connections to the system and to enable the Telnet Server Admin Mode. This command opens the Telnet listening port.

Default enabled
Format ip telnet server enable
Mode Privileged EXEC

no ip telnet server enable

Use this command to disable Telnet access to the system and to disable the Telnet Server Admin Mode. This command closes the Telnet listening port and disconnects all open Telnet sessions.

Format no ip telnet server enable
Mode Privileged EXEC

ip telnet port

M4250

M4350

Use this command to configure the TCP port number on which the Telnet server detects requests. The number argument can be a port number in the range from 1 to 65535.

Default 23
Format ip telnet port number
Mode Privileged EXEC

no ip telnet port

Use this command to reset the TCP port number on which the Telnet server detects requests to the default of 23.

Format no ip telnet port
Mode Privileged EXEC

telnet

M4250

M4350

This command establishes a new outbound Telnet connection to a remote host. The host must be a valid IP address or host name. Valid values for port should be a valid decimal integer in the range of 0 to 65535, where the default value is 23. If debug is used, the current Telnet options enabled are displayed. The optional line parameter sets the outbound Telnet operational mode as linemode where, by default, the operational mode is character mode. The localecho option enables local echo.

Format telnet {ip-address | hostname} port [debug] [line] [localecho]
Modes

Privileged EXEC

User EXEC

transport input telnet (Line Config)

M4250

M4350

This command regulates new Telnet sessions. If enabled, new Telnet sessions can be established until there are no more sessions available. An established session remains active until the session is ended or an abnormal network error ends the session.

Access the Line Config mode by entering the line console command in Global Config mode.

Note: If the Telnet Server Admin Mode is disabled, Telnet sessions cannot be established. Use the ip telnet server enable command to enable Telnet Server Admin Mode.
Default enabled
Format transport input telnet
Mode Line Config

no transport input telnet (Line Config)

Use this command to prevent new Telnet sessions from being established.

Format no transport input telnet
Mode Line Config

transport output telnet (Line Config)

M4250

M4350

This command regulates new outbound Telnet connections. If enabled, new outbound Telnet sessions can be established until the system reaches the maximum number of simultaneous outbound Telnet sessions allowed. An established session remains active until the session is ended or an abnormal network error ends it.

Access the Line Config mode by entering the line console command in Global Config mode.

Default enabled
Format transport output telnet
Mode Line Config

no transport output telnet (Line Config)

Use this command to prevent new outbound Telnet connection from being established.

Format no transport output telnet
Mode Line Config

session-limit (Line Config)

M4250

M4350

This command specifies the maximum number of simultaneous outbound Telnet sessions. The number argument can be a number in the range from 0–5. A value of 0 indicates that no outbound Telnet session can be established.

Access the Line Config mode by entering the line console command in Global Config mode.

Default 5
Format session-limit number
Mode Line Config

no session-limit (Line Config)

This command sets the maximum number of simultaneous outbound Telnet sessions to the default value.

Format no session-limit
Mode Line Config

session-timeout (Line Config)

M4250

M4350

This command sets the Telnet session time-out value. The time-out value unit of time is minutes and is specified by the minutes argument in the range 1–160 minutes.

Access the Line Config mode by entering the line console command in Global Config mode.

Default 5
Format session-timeout minutes
Mode Line Config

no session-timeout (Line Config)

This command sets the Telnet session time-out value to the default. The time-out value unit of time is minutes.

Format no session-timeout
Mode Line Config

telnetcon maxsessions

M4250

M4350

This command specifies the maximum number of Telnet connection sessions that can be established. The number argument can be a number in the range from 0–5. A value of 0 indicates that no Telnet connection can be established.

Default 5
Format telnetcon maxsessions number
Mode Privileged EXEC

no telnetcon maxsessions

This command sets the maximum number of Telnet connection sessions that can be established to the default value.

Format no telnetcon maxsessions
Mode Privileged EXEC

telnetcon timeout

M4250

M4350

This command sets the Telnet connection session time-out value. A session is active as long as the session has not been idle for the value set. The time-out value unit of time is minutes and is specified by the minutes argument in the range 1–160 minutes.

Note: When you change the time-out value, the new value is applied to all active and inactive sessions immediately. Any sessions that have been idle longer than the new time-out value are disconnected immediately.
Default 5
Format telnetcon timeout minutes
Mode Privileged EXEC

no telnetcon timeout

This command sets the Telnet connection session timeout value to the default.

Note: Changing the time-out value for active sessions does not become effective until the session is accessed again. Also, any keystroke activates the new time-out duration.
Format no telnetcon timeout
Mode Privileged EXEC

line telnet

M4250

M4350

This command gives you access to the Telnet Config mode (Config-telnet) for a virtual terminal for remote console access (Telnet). This mode lets you configure the Telnet settings.

Format line telnet
Mode Global Config

Command example:

CODE
(NETGEAR Switch)(config)#line telnet
(NETGEAR Switch)(config-telnet)#

show telnet

M4250

M4350

This command displays the current outbound Telnet settings. In other words, these settings apply to Telnet connections initiated from the switch to a remote system.

Format show telnet
Modes

Privileged EXEC

User EXEC

Term Definition
Outbound Telnet Login Timeout The number of minutes an outbound Telnet session is allowed to remain inactive before being logged off.
Maximum Number of Outbound Telnet Sessions The number of simultaneous outbound Telnet connections allowed.
Allow New Outbound Telnet Sessions Indicates whether outbound Telnet sessions will be allowed.

show telnetcon

M4250

M4350

This command displays the current inbound Telnet settings. In other words, these settings apply to Telnet connections initiated from a remote system to the switch.

Format show telnetcon
Modes

Privileged EXEC

User EXEC

Term Definition
Remote Connection Login Timeout (minutes) This object indicates the number of minutes a remote connection session is allowed to remain inactive before being logged off. May be specified as a number from 1 to 160. The factory default is 5.
Maximum Number of Remote Connection Sessions This object indicates the number of simultaneous remote connection sessions allowed. The factory default is 5.
Allow New Telnet Sessions New Telnet sessions will not be allowed when this field is set to no. The factory default value is yes.
Telnet Server Admin Mode States whether the Telnet Server Admin Mode is enabled or disabled.
Telnet Server Port The port number on which the Telnet server can detect requests.