633
ssh client ipv6 source
Use
ssh
client
ipv6
source
to configure the source IPv6 address for SSH packets that are sent by
the Stelnet client.
Use
undo ssh client ipv6 source
to restore the default.
Syntax
ssh client ipv6 source
{
interface
interface-type interface-number
|
ipv6
ipv6-address
}
undo ssh client ipv6 source
Default
The source IPv6 address for SSH packets is not configured. The Stelnet client automatically selects
an IPv6 address for SSH packets in compliance with RFC 3484.
Views
System view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number
: Specifies a source interface by its type and number. The
SSH packets use the longest-matching IPv6 address of the specified interface as their source
address.
ipv6 ipv6-address
: Specifies a source IPv6 address.
Usage guidelines
If you execute this command multiple times, the most recent configuration takes effect.
This command takes effect on all IPv6 Stelnet connections. The source IPv6 address specified in the
ssh2 ipv6
command takes effect only on the current IPv6 Stelnet connection.
If you specify the source IPv6 address both in this command and the
ssh2 ipv6
command, the
source IPv6 address specified in the
ssh2 ipv6
command takes effect.
Examples
# Specify
2:2::2:2
as the source IPv6 address for SSH packets.
<Sysname> system-view
[Sysname] ssh client ipv6 source ipv6 2:2::2:2
Related commands
display ssh client source
ssh client source
Use
ssh
client
source
to configure the source IPv4 address for SSH packets that are sent by the
Stelnet client.
Use
undo ssh client source
to restore the default.
Syntax
ssh client source
{
interface
interface-type interface-number
|
ip
ip-address
}
undo ssh client source