< Home

telnet client-source

Function

The telnet client-source command configures the specified the source address or source interface of the device that functions as the Telnet client.

Format

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

undo telnet client-source

Parameters

Parameter Description Value
-a source-ip-address Specifies the IPv4 address of the local device. -
-i interface-type interface-number Specifies the outbound interface of the local device. -

Views

System view

Default Level

3: Management level

Usage Guidelines

If you run the telnet command to log in to a Telnet server without specifying a source address or source interface, the source address or source interface that is specified through the telnet client-source command is adopted by default. If you run the telnet command and specify a source address or source interface at the same time, the specified source address or the specified source interface is adopted. When you view the current Telnet connection on the server, the specified source IP address or the primary IP address of the specified loop interface is displayed as the IP address of the user.

Example

# Set the source IP address of the Telnet client to 10.1.1.1.

<sysname> system-view
[sysname] telnet client-source -a 10.1.1.1
Info: Succeeded in setting the source address of the telnet client to 10.1.1.1.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >