The ping access-user command checks the network reachability between an access user and servers.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
user-mac mac |
Specifies the MAC address of a user. |
The value is in the format of H-H-H, in which each H is a 4-digit hexadecimal number, such as 00e0 and fc01.
|
user-id user-id |
Specifies the ID of a user. |
The value is an integer ranging from 0 to 4294967295. |
user-ip ip-address |
Specifies the IP address of the user. |
The value is in dotted decimal notation. |
vpn-instance vpn-instancename |
Specifies a VPN instance name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. _public_ cannot be used as a VPN instance name. The string can contain spaces if it is enclosed in double quotation marks ("). |
-t milliseconds |
Specifies the timeout period for waiting for an ICMP Echo Reply message. |
The value is an integer ranging from 0 to 65535, in milliseconds. The default value is 2000. |
-c times |
Specifies the number of sent ICMP Echo Request messages. |
The value is an integer ranging from 1 to 20. The default value is 5. |
-m milliseconds |
Specifies the interval at which ICMP Echo Request messages are sent. After an ICMP Echo Request message is sent, the device waits for an ICMP Echo Reply message. If no ICMP Echo Reply message is received within the specified interval, the device sends another ICMP Echo Request message. |
The value is an integer ranging from 1 to 10000, in milliseconds. The default value is 500. |
capture-enable |
Enables the device to obtain packet headers. |
- |
Usage Scenario
If a user fails to access the Internet, you can run the ping access-user command to check the reachability between the user and servers. You can specify the MAC address, IP address, or ID of the user in the command to check whether ICMP Echo Request messages reach the servers, the number of sent and received messages, and the message loss ratio.
Precautions
<HUAWEI> ping access-user user-id 0
Info: ping user IP address
PING 192.168.227.6: 56 data bytes, press CTRL_C to break
Reply from 192.168.227.6: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 192.168.227.6: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 192.168.227.6: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 192.168.227.6: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 192.168.227.6: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.227.6 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/5 ms
Info: ping IP address of the primary DNS server
PING 192.168.227.7: 56 data bytes, press CTRL_C to break
Reply from 192.168.227.7: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 192.168.227.7: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 192.168.227.7: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 192.168.227.7: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 192.168.227.7: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.227.7 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/5 ms
Info: ping IP address of the secondary DNS server
PING 192.168.227.8: 56 data bytes, press CTRL_C to break
Reply from 192.168.227.8: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 192.168.227.8: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 192.168.227.8: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 192.168.227.8: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 192.168.227.8: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.227.8 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/5 ms
Info: ping IP address of the RADIUS authentication server
PING 192.168.227.9: 56 data bytes, press CTRL_C to break
Reply from 192.168.227.9: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 192.168.227.9: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 192.168.227.9: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 192.168.227.9: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 192.168.227.9: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.227.9 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/5 ms
Info: ping IP address of the RADIUS accounting server
PING 192.168.227.10: 56 data bytes, press CTRL_C to break
Reply from 192.168.227.10: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 192.168.227.10: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 192.168.227.10: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 192.168.227.10: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 192.168.227.10: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.227.10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/5 ms
<HUAWEI> ping access-user user-id 0
Info: ping user IP address
PING 192.168.255.254: 56 data bytes, press CTRL_C to break
Reply from 192.168.255.254: bytes=56 Sequence=1 ttl=128 time=24 ms
Reply from 192.168.255.254: bytes=56 Sequence=2 ttl=128 time=21 ms
Reply from 192.168.255.254: bytes=56 Sequence=3 ttl=128 time=26 ms
Reply from 192.168.255.254: bytes=56 Sequence=4 ttl=128 time=18 ms
Reply from 192.168.255.254: bytes=56 Sequence=5 ttl=128 time=24 ms
Info: ping IP address 1.1.1.1
PING 192.168.10.10: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
Error: Invalid IP address or host 2.2.2.2.2.2.
Item | Description |
---|---|
PING x.x.x.x | Destination IP address. |
press CTRL_C to break | You can press CTRL+C to stop the ongoing ping test. |
Reply from x.x.x.x | Information about the reply to each ICMP Echo Request message, including:
|
Request time out(xxxx) | Request timeout. The timeout cause is displayed, which can be:
Other causes of message loss are not displayed. |
x data bytes | Length of each sent ICMP Echo Request message. |
x.x.x.x ping statistics | Ping statistics.
|