Initiating an outbound Telnet session to another device

Initiating an outbound Telnet session to another network device

To initiate an outbound Telnet session, do one of the following:

Prerequisites

Before you initiate an outbound Telnet session to another network device, you must insure that:

  • The switch has a separate out-of-band management port, if you want to use an out-of-band management port for the outbound Telnet traffic. See Appendix I, "Network Out-of-Band Management" in this guide for more information about out-of-band management.

  • Stacking is enabled, if you want to initiate an outbound Telnet session to a member switch that is a commander in a stack.

Procedure
  1. Use the following command to initiate an outbound Telnet session through a data port:
    telnet <ipv4-addr | ipv6-addr | hostname | switch-num>
  2. Use the following command to initiate an outbound Telnet session through an out-of-band management port:
    telnet < ipv4-addr | ipv6-addr | hostname | switch-num > oobm

In these commands, the destination device for the outbound Telnet session is specified as an IPv4 address, IPv6 address, hostname, or stack number (1-16) of a member switch.

Examples

If the host "Labswitch" is in the domain abc.com, you can enter the following command and the destination is resolved to "Labswitch.abc.com":

switch(config)# telnet Labswitch

You can also enter the full domain name of the host in the command:

switch(config)# telnet Labswitch.abc.com

You can use the show telnet command to display the resolved IP address.

The show telnet command displaying resolved IP addresses
switch(config)# show telnet

  Telnet Activity

  -------------------------------------------------------
  Session  : **  1
  Privilege: Manager
  From     : Console
  To       :

  -------------------------------------------------------
  Session  : **  2
  Privilege: Manager
  From     : 12.13.14.10
  To       : 15.33.66.20

  -------------------------------------------------------
  Session  : **  3
  Privilege: Operator
  From     : 2001:db7:5:0:203:4ff:fe0a:251
  To       : 2001:db7:5:0:203:4ff1:fddd:12