telnet

Use this command to start a Telnet connection to a remote host. The S- K- and 7100-Series devices allow a total of four inbound and / or outbound Telnet session to run simultaneously.

Syntax

telnet [-s src-addr] [-4] [-6] [-vrf router] [-r] {host [port]}

Parameters

host Specifies the host name or IP address of the remote host this Telnet session is connecting to.
port (Optional) Specifies the host port to connect to on the remote host. Default value: 23.
-s src-addr (Optional) Specifies the IP address to transmit from when there are multiple interfaces and or addresses.
-4 (Optional) Specifies that this session only supports IPv4 addressing.
-6 (Optional) Specifies that this session only supports IPv6 addressing.
-vrf router (Optional) Specifies the router on which to source this SSH session. Valid values: default.
-r (Optional) Specifies that normal routing table lookup should be bypassed and that the session request should be sent directly to a host on an attached network.

Defaults

  • If not specified, the host Telnet default port number 23 will be used.
  • If -s not specified, the source IP address is chosen by the system based upon the chosen route to the destination.
  • If -4 or -6 is not specified, both IPv4 and IPv6 addressing is supported in this session.
  • If -vrf is not specified, the router is inherited from the CLI context. The default router is used by this session.
  • If -r is not specified, the standard host routing tables will be used for this session.

Mode

All command modes.

Usage

Any desired options must be entered on the command line prior to specifying the remote host and its optional port.

The -4 and -6 flags are used when the host is a domain name as opposed to a IPv4 or IPv6 address. A DNS server may return multiple responses, some of which may be IPv4 addresses and some of which may be IPv6 addresses. If the returned address type matters, then these flags let you choose which type will be accepted.

The -s and -r options are both intended for when the route table is invalid for some reason and you are using Telnet to debug it.

Example

This example shows how to start a Telnet session to a host at 10.21.42.13:

System(rw)->telnet 10.21.42.13