76
Syntax
source interface
interface-type interface-number
undo source interface
Default
No source IP address is specified for probe packets. The probe packets take the primary IP address
of the outgoing interface as their source IP address.
Views
ICMP echo operation view
UDP tracert operation view
Predefined user roles
network-admin
Parameters
interface-type interface-number
: Specifies an interface by its type and number.
Usage guidelines
If you execute this command and the
source ip
or
source ipv6
command for an ICMP echo
operation multiple times, the
most recent configuration
takes effect.
If you execute this command and the
source ip
command for a UDP tracert operation multiple times,
the
most recent configuration
takes effect.
The specified source interface must be up. Otherwise, no probe requests can be sent out.
Examples
# Specify the IP address of interface GigabitEthernet 1/0/1 as the source IP address of ICMP echo
request packets.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] source interface gigabitethernet 1/0/1
Related commands
source ip
source ipv6
source ip
Use
source ip
to configure the source IPv4 address for probe packets.
Use
undo source ip
to restore the default.
Syntax
source ip ip-address