1# ping6 2 3 4## Command Function 5 6This command is used to test an IPv6 network connection. 7 8 9## Syntax 10 11ping6 *[-c count] [-I interface / sourceAddress] destination* 12 13 14## Parameters 15 16**Table 1** Parameter description 17 18| Parameter | Description | Value Range| 19| --------------------- | ----------------------------------- | -------- | 20| -c count | Specifies the number of execution times. If this parameter is not specified, the default value is **4**.| [1, 65535] | 21| -I interface | Specifies the NIC for performing the ping operation. | N/A | 22| -I sourceAddress | Specifies the source IPv6 address. | N/A | 23| destination | Specifies the IP address of the destination host. | N/A | 24 25 26## Usage Guidelines 27 28- If the destination IPv6 address is unreachable, "Request Timed Out" will be displayed. 29 30- If no route is available to the destination IPv6 address, "Destinatin Host Unreachable" will be displayed. 31 32- This command can be used only after the TCP/IP stack is enabled. 33 34## Note 35 36Currently, the shell does not support this command. 37 38## Example 39 40- ping6 2001:a:b:c:d:e:f:b 41 42- ping6 -c 3 2001:a:b:c:d:e:f:b 43 44- ping6 -I eth0 2001:a:b:c:d:e:f:b 45 46- ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b 47 48 49## Output 50 511. Output of **ping6 2001:a:b:c:d:e:f:b**: 52 53 ``` 54 OHOS # ping6 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. 55 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 56 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 57 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 58 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 59 --- 2001:a:b:c:d:e:f:b/64 ping statistics --- 60 4 packets transmitted, 4 received, 0.00% packet loss, time 20ms 61 rtt min/avg/max = 0/0.00/0 ms 62 ``` 63 642. Output of **ping6 -c 3 2001:a:b:c:d:e:f:b**: 65 66 ``` 67 OHOS # ping6 -c 3 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. 68 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 69 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 70 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 71 --- 2001:a:b:c:d:e:f:b/64 ping statistics --- 72 3 packets transmitted, 3 received, 0.00% packet loss, time 20ms 73 rtt min/avg/max = 0/0.00/0 ms 74 ``` 75 763. Output of **ping6 -I eth0 2001:a:b:c:d:e:f:b**: 77 78 ``` 79 OHOS # ping6 -I eth0 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. 80 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time=10 ms 81 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 82 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 83 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 84 --- 2001:a:b:c:d:e:f:b/64 ping statistics --- 85 4 packets transmitted, 4 received, 0.00% packet loss, time 30msrtt min/avg/max = 0/2.50/10 ms 86 ``` 87 884. Output of **ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b**: 89 90 ``` 91 OHOS # ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. 92 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 93 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 94 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 95 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 96 --- 2001:a:b:c:d:e:f:b/64 ping statistics --- 97 4 packets transmitted, 4 received, 0.00% packet loss, time 20msrtt min/avg/max = 0/0.00/0 ms 98 ``` 99