No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
telnet

telnet

Function

The telnet command enables you to use the Telnet protocol to log in to another device from the current device.

Format

# Log in to another device through Telnet based on IPv4.

telnet [ vpn-instance vpn-instance-name ] [ -a source-ip-address ] host-ip [ port-number ]

# Log in to another device through Telnet based on IPv6.

telnet ipv6 [ -a source-ip-address ] [ vpn6-instance vpn6-instance-name ] host-ipv6 [ -oi interface-type interface-number ] [ port-number ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies the VPN4 instance name of the device to log in through Telnet.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
-a source-ip-address

By specifying a source IP address, you can use this address to communicate with the server for high network security. If no source address is specified, the system will use the IP address of the local outbound interface to initiate a Telnet connection.

-
vpn6-instance vpn6-instance-name Specifies the VPN6 instance name of the device to log in through Telnet. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
host-ip Specifies the IPv4 address or host name of the remote device. The value is a string of 1 to 255 case-insensitive characters without spaces.
host-ipv6 Specifies the IPv6 address or host name of the remote device. The value is a string of 1 to 255 case-insensitive characters without spaces.
-oi interface-type interface-number Specifies the outbound interface on the local device. If the IPv6 address of the remote host is linked to a local address, the outbound interface must be specified.
port-number Specifies the number of the TCP port that is used by the remote device to provide the Telnet service. The value is an integer that ranges from 1 to 65535. The default value is 23.

Views

User view

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

If one or multiple devices on the network need to be configured and managed, you do not need to connect each device to your terminal for local maintenance. If you have learned the IP address of the device, you can run this command to log in to the device from your terminal for remote device configuration. By doing this, you can use one terminal to maintain multiple devices on the network.

You can press Ctrl_] to terminate an active connection between the local and remote devices.

Precautions

  • Before you run the telnet command to connect to the Telnet server, the Telnet client and server must be able to communicate through Layer 3 and the Telnet service must be enabled on the Telnet server.

  • Logins through Telnet bring security risks because Telnet does not provide any authentication mechanism and data is transmitted using TCP in plain text. The STelnet mode is recommended for the network that has the high security requirement.

Example

# Connect to a remote device through Telnet.

<Huawei> telnet 192.168.1.6
# Use the IPv6 address to connect to a remote device through Telnet.
<Huawei> telnet ipv6 fc00:0:0:11::158
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 35139

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next