Command Manual (For Soliton) – HWPing
H3C S3100 Series Ethernet Switches
Chapter 1 HWPing Commands
1-25
1.1.22 source-ip
Syntax
source-ip ip-address
undo source-ip
View
HWPing test group view
Parameters
ip-address
: Source IP address for a test.
Description
Use the
source-ip
command to configure the source IP address for the test.
Use the
undo source-ip
command to remove the configured source IP address.
By default, the IP address of the interface that sends test packets serves as the source
IP address.
Note:
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
1.1.23 source-port
Syntax
source-port port-number
undo source-port