The telnet client-source command configures the specified the source address or source interface of the device that functions as the Telnet client.
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 device. | - |
| -i interface-type interface-number | Specifies the outbound interface of the local device. | - |
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.