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:

Procedure

  1. Enter system view.

    system-view

  2. 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.