77
undo
source ip
Default
The probe packets takes the IP address of their output interface as the source IP address.
Views
DHCP/DLSw/FTP/HTTP/SNMP/TCP/voice operation view
ICMP/UDP echo operation view
ICMP/path/UDP jitter operation view
UDP tracert operation view
Predefined user roles
network-admin
Parameters
ip-address
: Specifies the source IPv4 address for probe packets.
Usage guidelines
If you execute the
source interface
and
source ip
commands for an ICMP echo or UDP tracert
operation multiple times, the most recent configuration takes effect.
The specified source IPv4 address must be the IPv4 address of a local interface, and the local
interface must be up. Otherwise, no probe packets can be sent out.
Examples
# Specify 10.1.1.1 as the source IPv4 address for ICMP echo requests.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] source ip 10.1.1.1
Related commands
source interface
source ipv6
Use
source ipv6
to configure the source IPv6 address for probe packets.
Use
undo source ipv6
to restore the default.
Syntax
source ipv6 ipv6-address
undo
source ipv6
Default
The probe packets takes the IPv6 address of their output interface as the source IPv6 address.