R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

68
[Sysname-nqa-admin-test-icmp-echo] source interface gigabitethernet 2/1/1
# In ICMP template view, specify the IP address of interface GigabitEthernet 2/1/1 as the source IP
address of ICMP echo request packets.
<Sysname> system-view
[Sysname] nqa template icmp icmptplt
[Sysname-nqatplt-icmp-icmptplt] source interface gigabitethernet 2/1/1
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 serves as 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
DLSw/DHCP/FTP/HTTP/SNMP/TCP/voice operation view
ICMP/UDP echo operation view
Path/UDP jitter 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 DHCP 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 for ICMP echo requests as 10.1.1.1.
<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