Specifying the source IP address for outgoing SCP packets
About specifying the source IP address for outgoing SCP packets
After you specify the source IP address for outgoing SCP packets on an SCP client, the client uses the specified IP address to communicate with the SCP server.
Restrictions and guidelines
As a best practice, specify the IP address of a loopback interface as the source address of outgoing SCP packets for the following purposes:
Ensuring the communication between the SCP client and the SCP server.
Improving the manageability of SCP clients in authentication service.
Procedure
Enter system view.
system-view
Specify the source address for outgoing SCP packets.
IPv4:
scp client source { interface interface-type interface-number | ip ip-address }
By default, an SCP client uses the primary IPv4 address of the output interface in the matching routing entry as the source address of the outgoing SCP packets.
IPv6:
scp client ipv6 source { interface interface-type interface-number | ipv6 ipv6-address }
By default, an SCP client automatically selects an IPv6 address as the source address of the outgoing packets in compliance with RFC 3484.