71
Usage guidelines
If you configure the
source interface
command with the
source ip
or
source ipv6
command, 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 VLAN-interface 2 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 vlan-interface 2
# In ICMP template view, specify the IP address of interface VLAN-interface 2 as the source IP
address of ICMP echo request packets.
<Sysname> system-view
[Sysname] nqa template icmp icmptplt
[Sysname-nqatplt-icmp-icmptplt] source interface vlan-interface 2
Related commands
source ip
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
mdc-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.