231
Examples
# Enable the routing table bypass function.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] route-option bypass-route
source interface
Use
source interface
to specify the IP address of the specified interface as the source IP address of
probe packets.
Use
undo
source interface
to restore the default.
Syntax
source interface
interface-type interface-number
undo source interface
Default
No source IP address is specified for probe packets. The probe packets take the primary IP address
of the output interface as their source IP address.
Views
ICMP echo operation view, UDP tracert operation view, ICMP template view
Predefined user roles
network-admin
Parameters
interface-type interface-number
: Specifies an interface by its type and number.
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 ICMP echo 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