< Home

telnet client-source

Function

The telnet client-source command specifies a source IP address or source interface for a Telnet client.

The undo telnet client-source command restores the default settings.

The default source IP address of a Telnet client is 0.0.0.0, and there is no default source interface.

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 switch. -
-i interface-type interface-number Specifies the source interface of the local switch. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If the source IP address is not specified in the telnet command, the source IP address specified using the telnet client-source is used. If a source IP address is specified in the telnet command, the specified setting is used. Check the current Telnet connection on the server. The IP address displayed is the specified source IP address or the primary IP address of the specified interface.

Prerequisites

The source interface specified using the command must exist and have an IP address configured.

Example

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

<HUAWEI> system-view
[HUAWEI] telnet client-source -a 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >