Using the device to log in to a Telnet server

You can use the device as a Telnet client to log in to a Telnet server. If the server is located in a different subnet than the device, make sure the two devices have routes to reach each other.

Figure 11: Telnetting from the device to a Telnet server

To use the device to log in to a Telnet server:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. (Optional.) Specify the source IPv4 address or source interface for outgoing Telnet packets.

telnet client source { interface interface-type interface-number | ip ip-address }

By default, no source IPv4 address or source interface is specified, and the primary IPv4 address of the outbound interface is used as the source address for outgoing Telnet packets.

3. Exit to user view.

quit

N/A

4. Use the device to log in to a Telnet server.

  • Log in to an IPv4 Telnet server:telnet remote-host [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip ip-address } ] [ dscp dscp-value ]

  • Log in to an IPv6 Telnet server:telnet ipv6 remote-host [ -i interface-type interface-number ] [ port-number ] [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]

This command is available in user view.