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