72
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
source ipv6
Use
source ipv6
to configure the source IPv6 address for probe packets.
Use
undo source ipv6
to remove the configured source IPv6 address. The IPv6 address of the
interface that sends a probe packet is the source IPv6 address of the probe packet.
Syntax
source ipv6
ipv6-address
undo
source ipv6
Default
No source IPv6 address is configured for probe packets.
Views
Any NQA template view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6-address
: Specifies the source IPv6 address for probe packets. IPv6 link-local addresses are not
supported.
Usage guidelines
If you configure both the
source interface
and
source ipv6
commands for an ICMP echo operation,
the most recent configuration takes effect.
The specified source IPv6 address must be the IPv6 address of a local interface. 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.