49
Examples
# Specify the source IPv4 address for outgoing Telnet packets when the device serves as a Telnet client
as 1.1.1.1.
<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 remote host in an IPv6 network.
Syntax
telnet
ipv6
remote-host
[
-i
interface-type
interface-number
] [
port-number
] [
vpn-instance
vpn-instance-name
]
Views
User view
Default command level
0: Visit level
Parameters
remote-host
: Specifies the IP address or host name of a remote host, a case-insensitive string of 1 to 46
characters.
-i
interface-type interface-number
: Specifies the outbound interface for sending Telnet packets, where
interface-type interface-number
represents the interface type and number. If the destination address is a
link-local address, provide the
–i
interface-type interface-number
argument.
port-number
: Specifies an TCP port number for the remote host to provide the Telnet service. It ranges
from 0 to 65535 and defaults to 23.
vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN the remote system belongs to, where
vpn-instance-name
is a case-sensitive string of 1 to 31 characters. If the remote system is on the public
network, do not specify this option.
Usage guidelines
To terminate the current Telnet connection, press
Ctrl+K
or enter
quit
.
Examples
# Telnet to the remote host 5000::1.
<Sysname> telnet ipv6 5000::1
telnet server dscp
Use
telnet server dscp
to set the DSCP value for IPv4 to use for outgoing Telnet packets on a Telnet server.
Use
undo telnet server dscp
to restore the default.
Syntax
telnet server dscp
dscp-value
undo telnet server dscp