33
interface
interface-type interface-number
: Specifies the source interface. The source
IPv4 address of the Telnet packets sent is the IPv4 address of the specified interface.
interface-type interface-number
represents the interface type and number.
ip
ip-address
: Specifies the source IPv4 address of Telnet packets.
Description
Use the
telnet
command to telnet a remote host to remotely manage the host. You
can press
Ctrl+K
or use the
quit
command to stop the current Telnet login.
The source IPv4 address or source interface specified by this command is
applicable to the current Telnet connection only.
If you use both the telnet command and the telnet client source command to
specify the source IPv4 address or source interface, the source IPv4 address or
interface specified by the
telnet
command takes effect.
Examples
Telnet the remote host with the IP address 1.1.1.2, specifying the source IP address of
Telnet packets as 1.1.1.1.
<Sysname> telnet 1.1.1.2 source ip 1.1.1.1
telnet client source
Syntax
telnet client source
{
interface
interface-type interface-number
|
ip
ip-address
}
undo telnet client source
View
System view
Default Level
2: System level
Parameters
interface
interface-type interface-number
: Specifies the source interface. The source
IPv4 address of the Telnet packets sent is the IPv4 address of the specified interface.
interface-type interface-number
represents the interface type and number.
ip
ip-address
: Specifies the source IPv4 address of Telnet packets.
Description
Use the
telnet client source
command to specify the source IPv4 address or source
interface for sending Telnet packets when the device serves as the Telnet client.
Use the
undo telnet client source
command to remove the configuration.