ping6
Syntax
ping6 {<IPv6-ADDR> | <HOSTNAME>} [data-fill <PATTERN> | datagram-size <SIZE> |
interval <TIME> | repetitions <NUMBER> | timeout <TIME> | vrf <VRF-NAME>]
Description
Pings the specified IPv6 address or hostname with or without optional parameters.
Command context
Operator (>
) or Manager (#
)
Parameters
IPv6-ADDR
Selects the IPv6 address to ping.
HOSTNAME
Selects the hostname to ping. Range: 1-256 characters
data-fill <PATTERN>
Specifies the data pattern in hexadecimal digits to send. A maximum of 16 "pad" bytes can be specified to fill out the ICMP packet. Default: AB
datagram-size <SIZE>
Specifies the ping datagram size. Range: 0-65399, default: 100.
interval <TIME>
Specifies the interval between successive ping requests in seconds. Range: 1-60 seconds, default: 1 second.
repetitions <NUMBER>
Specifies the number of packets to send. Range: 1-10000 packets, default: Five packets.
timeout <TIME>
Specifies the ping timeout in seconds. Range: 1-60 seconds, default: 2 seconds.
vrf <VRF-NAME>
Specifies the virtual routing and forwarding (VRF) to use. When this option is not provided, the default VRF is used.
Authority
Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.
Examples
Pinging an IPv6 address:
switch# ping6 2020::2 PING 2020::2(2020::2) 100 data bytes 108 bytes from 2020::2: icmp_seq=1 ttl=64 time=0.386 ms 108 bytes from 2020::2: icmp_seq=2 ttl=64 time=0.235 ms 108 bytes from 2020::2: icmp_seq=3 ttl=64 time=0.249 ms 108 bytes from 2020::2: icmp_seq=4 ttl=64 time=0.240 ms 108 bytes from 2020::2: icmp_seq=5 ttl=64 time=0.252 ms --- 2020::2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4000ms rtt min/avg/max/mdev = 0.235/0.272/0.386/0.059 ms
Pinging the localhost:
switch# ping6 localhost PING localhost(localhost) 100 data bytes 108 bytes from localhost: icmp_seq=1 ttl=64 time=0.093 ms 108 bytes from localhost: icmp_seq=2 ttl=64 time=0.051 ms 108 bytes from localhost: icmp_seq=3 ttl=64 time=0.055 ms 108 bytes from localhost: icmp_seq=4 ttl=64 time=0.046 ms 108 bytes from localhost: icmp_seq=5 ttl=64 time=0.048 ms --- localhost ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3998ms rtt min/avg/max/mdev = 0.046/0.058/0.093/0.019 ms
Pinging a server with a data pattern:
switch# ping6 2020::2 data-fill ab PATTERN: 0xab PING 2020::2(2020::2) 100 data bytes 108 bytes from 2020::2: icmp_seq=1 ttl=64 time=0.038 ms 108 bytes from 2020::2: icmp_seq=2 ttl=64 time=0.074 ms 108 bytes from 2020::2: icmp_seq=3 ttl=64 time=0.076 ms 108 bytes from 2020::2: icmp_seq=4 ttl=64 time=0.075 ms 108 bytes from 2020::2: icmp_seq=5 ttl=64 time=0.077 ms --- 2020::2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3999ms rtt min/avg/max/mdev = 0.038/0.068/0.077/0.015 ms
Pinging a server with a datagram size:
switch# ping6 2020::2 datagram-size 200 PING 2020::2(2020::2) 200 data bytes 208 bytes from 2020::2: icmp_seq=1 ttl=64 time=0.037 ms 208 bytes from 2020::2: icmp_seq=2 ttl=64 time=0.076 ms 208 bytes from 2020::2: icmp_seq=3 ttl=64 time=0.076 ms 208 bytes from 2020::2: icmp_seq=4 ttl=64 time=0.077 ms 208 bytes from 2020::2: icmp_seq=5 ttl=64 time=0.066 ms --- 2020::2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3999ms rtt min/avg/max/mdev = 0.037/0.066/0.077/0.016 ms
Pinging a server with an interval specified:
switch# ping6 2020::2 interval 5 PING 2020::2(2020::2) 100 data bytes 108 bytes from 2020::2: icmp_seq=1 ttl=64 time=0.043 ms 108 bytes from 2020::2: icmp_seq=2 ttl=64 time=0.075 ms 108 bytes from 2020::2: icmp_seq=3 ttl=64 time=0.074 ms 108 bytes from 2020::2: icmp_seq=4 ttl=64 time=0.075 ms 108 bytes from 2020::2: icmp_seq=5 ttl=64 time=0.075 ms --- 2020::2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 19999ms rtt min/avg/max/mdev = 0.043/0.068/0.075/0.014 ms
Pinging a server with a specified number of packets to send:
switch# ping6 2020::2 repetitions 6 PING 2020::2(2020::2) 100 data bytes 108 bytes from 2020::2: icmp_seq=1 ttl=64 time=0.039 ms 108 bytes from 2020::2: icmp_seq=2 ttl=64 time=0.070 ms 108 bytes from 2020::2: icmp_seq=3 ttl=64 time=0.076 ms 108 bytes from 2020::2: icmp_seq=4 ttl=64 time=0.076 ms 108 bytes from 2020::2: icmp_seq=5 ttl=64 time=0.071 ms 108 bytes from 2020::2: icmp_seq=6 ttl=64 time=0.078 ms --- 2020::2 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 4999ms rtt min/avg/max/mdev = 0.039/0.068/0.078/0.015 ms