40
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
mdc-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.
The source IPv4 address or source interface that is specified by this command applies to all Telnet
connections. However, if a user specifies a source IPv4 address or source interface when executing
the
telnet
command, the setting specified by the user takes effect.
Examples
# Set the source IPv4 address for outgoing Telnet packets to 1.1.1.1 when the device serves as a
Telnet client.
<Sysname> system-view
[Sysname] telnet client source ip 1.1.1.1
Related commands
display telnet client configuration
telnet ipv6
Use
telnet ipv6
to Telnet to a host in an IPv6 network.
Syntax
telnet ipv6
remote-host
[
-i
interface-type
interface-number
] [
port-number
] [
vpn-instance
vpn-instance-name
] [
dscp
dscp-value
]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
remote-host
: Specifies the IPv6 address or host name of a remote host. A host name can be a
case-insensitive string of 1 to 253 characters. Valid characters include letters, digits, hyphens (-),
underscores (_), and dots (.).
-i
interface-type interface-number
: Specifies the interface for sending Telnet packets. This option is
required when the remote host address is a link-local address. When the server address is a global
unicast address, you cannot specify this option.