The telnet command is used to connect to remote servers from the current device using the Telnet protocol. Before using the telnet command to connect to a Telnet server, the Telnet client and the Telnet server need to be route reachable, and the Telnet service must be enabled on the Telnet server side.
Command Syntax
From the ">" prompt, use the following format,
telnet {<ip-address>|<host-name>} [<port-number>] [vrf <vrf-name>]
From the "#" prompt, add run in front of the command,
run telnet {<ip-address>|<host-name>} [<port-number>] [vrf <vrf-name>]
Parameter
Parameter | Description |
<ip-address>|<host-name> | Specifies the IPv4/IPv6 address or host name of a remote system. |
<port-number> | Optional. Specifies the TCP port number on which the remote device provides Telnet service. The value is an integer that ranges from 1 to 65535. The default value is 23. |
vrf <vrf-name> | Optional. Specifies a VRF name. The value is a string.
|
Example
Establish a Telnet connection with a remote device in default VRF.
admin@PICOS> telnet 10.10.51.205 vrf mgmt-vrf Trying 10.10.51.205... Connected to 10.10.51.205. Escape character is '^]'. User Access Verification Username:
Establish a Telnet connection with a remote device in management VRF.
admin@PICOS> telnet 10.10.51.25 vrf mgmt-vrf Trying 10.10.51.205... Connected to 10.10.51.205. Escape character is '^]'. User Access Verification Username: