1-22
By default, the IP address of the interface that sends test packets serves as the source IP address.
z For FTP tests, this command is required. This command does not apply to DHCP tests. For other
tests, this command is optional.
z The specified source IP address by this command cannot be of an interface on a remote device,
and the interface must be Up; otherwise the test will fail.
Examples
# Configure the source IP address as 169.254.10.2 for this ICMP test.
<Sysname> system-view
System View: return to User View with Ctrl+Z
[Sysname] hwping administrator icmp
[Sysname-hwping-administrator-icmp] test-type icmp
[Sysname-hwping-administrator-icmp] source-ip 169.254.10.2
source-port
Syntax
source-port port-number
undo source-port
View
HWPing test group view
Parameters
port-number: Protocol source port number, in the range of 1 to 65,535.
Description
Use the source-port command to configure the protocol source port number for the current test.
Use the undo source-port command to remove the configured source port number.
This command does not apply to ICMP, DHCP, and DNS tests.
Examples
# Configure the source port number as 8000 for this HTTP test.
<Sysname> system-view
System View: return to User View with Ctrl+Z