The scp client-source -a command configures a source IPv4 address for the SCP client.
The scp ipv6 client-source -a command configures a source IPv6 address for the SCP client.
The undo scp client-source command restores the default source IPv4 address for the SCP client.
The undo scp ipv6 client-source command restores the default source IPv6 address for the SCP client.
By default, the source IPv4 address of the SCP client is 0.0.0.0 and the source IPv6 address is 0::0.
Parameter | Description | Value |
---|---|---|
-a source-ip-address |
Specifies a source IPv4 address for the SCP client. |
The value is in the decimal format. |
-a source-ipv6-address |
Specifies a source IPv6 address for the SCP client. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
public-net |
Specifies the public network where the SCP server resides. |
- |
-vpn-instance vpn-instance-name |
Specifies the name of a VPN instance to which the SCP server belongs. Before specifying the parameter vpn-instance vpn-instance-name, ensure that a VPN instance has been configured. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
-vpn-instance ipv6-vpn-instance-name |
Specifies the name of a VPN instance to which the SCP server belongs. Before specifying the parameter vpn-instance ipv6-vpn-instance-name, ensure that a VPN instance has been configured. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
Usage Scenario
If you run the scp command to log in to the SCP server without specifying a source IP address or source interface, the source IP address or source interface specified using the scp client-source command is adopted by default. When the SCP connection on the server is viewed, the specified source IP address or the primary IP address of the specified source interface is displayed as the IP address of the user.
Prerequisites
VPN configuration must be successful, to configure the vpn instance using this command.
Precautions