scp client source

Use scp client source to configure the source IPv4 address for SCP packets that are sent by the SCP client.

Use undo scp client source to restore the default.

Syntax

scp client source { interface interface-type interface-number | ip ip-address }

undo scp client source

Default

The source IPv4 address for outgoing SCP packets is not configured. The SCP client uses the primary IPv4 address of the output interface in the matching routing entry as the source IPv4 address for outgoing SCP packets.

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 uses the primary IPv4 address of the interface as the source address of outgoing SCP packets.

ip ip-address: Specifies a source IPv4 address.

Usage guidelines

This command takes effect on all SCP connections. The source IPv4 address specified in the scp command takes effect only on the current SCP connection. If you specify the source IPv4 address in both this command and the scp command, the source IPv4 address specified in the scp command takes effect.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify 192.168.0.1 as the source IPv4 address for SCP packets.

<Sysname> system-view
[Sysname] scp client source ip 192.168.0.1

Related commands

display scp client source