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.
telnet client-source { -a source-ip-address | -i interface-type interface-number }
undo telnet client-source
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. | - |
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.