232
source ip
Use
source ip
to configure the source IP address for probe packets.
Use
undo source ip
to remove the configured source address. The IP address of the interface that
sends a probe packet is the source IP address of the probe packet.
Syntax
source ip ip-address
undo
source ip
Default
No source IP address is configured for probe packets.
Views
DHCP/DLSw/FTP/HTTP/SNMP/TCP/voice operation view
ICMP/UDP echo operation view
Path/UDP jitter operation view
UDP tracert operation view
Any NQA template view
Predefined user roles
network-admin
Parameters
ip-address
: Specifies the source IP address for probe packets.
Usage guidelines
If you configure both the
source interface
and
source ip
commands for an ICMP echo or UDP
tracert operation, the most recent configuration takes effect.
The specified source IP address must be the IP address of a local interface, and the local interface
must be up. Otherwise, no probe packets can be sent out.
For an NQA template, if the source and destination addresses have different IP versions, the source
address does not take effect.
Examples
# Configure the source IP address as 10.1.1.1 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
# In ICMP template view, configure the source IP address as 10.1.1.1 for ICMP echo requests.
<Sysname> system-view
[Sysname] nqa template icmp icmptplt
[Sysname-nqatplt-icmp-icmptplt] source ip 10.1.1.1
Related commands
source interface