40
source
: Specifies a source IPv4 address or source interface for outgoing Telnet packets.
interface
interface-type interface-number
: Specifies the source interface. The primary IPv4 address of the
interface will be used as the source IPv4 address for outgoing Telnet packets.
ip
ip-address
: Specifies the source IPv4 address for outgoing Telnet packets.
dscp
dscp-value
: Specifies the DSCP value for IP to use in outgoing Telnet packets to indicate the packet
transmission priority, in the range of 0 to 63. The default is 48.
Usage guidelines
This command is not supported in FIPS mode.
To terminate the current Telnet connection, press
Ctrl+K
or execute the
quit
command.
The source IPv4 address or source interface that is specified by this command is only applicable to the
current Telnet connection.
Examples
# Telnet to host 1.1.1.2, using 1.1.1.1 as the source IP address for outgoing Telnet packets.
<Sysname> telnet 1.1.1.2 source ip 1.1.1.1
Related commands
telnet client source
telnet client source
Use
telnet client source
to specify a source IPv4 address or source interface for outgoing Telnet packets
when the device serves as a Telnet client.
Use
undo telnet client source
to remove the configuration.
Syntax
telnet client source
{
interface
interface-type interface-number
|
ip
ip-address
}
undo telnet client source
Default
No source IPv4 address or source interface is specified for outgoing Telnet packets. The source IPv4
address is the primary IPv4 address of the outbound interface.
Views
System view
Predefined user roles
network-admin
Parameters
interface
interface-type interface-number
: Specifies a source interface. The primary IPv4 address of the
interface will be used as the source IPv4 address for outgoing Telnet packets.
ip
ip-address
: Specifies a source IPv4 address.
Usage guidelines
This command is not supported in FIPS mode.