Ping for IPv6 (Ping6)

The Ping6 test is a point-to-point test that accepts an IPv6 address or IPv6 host name to see if an IPv6 switch is communicating properly with another device on the same or another IPv6 network. A ping test checks the path between the switch and another device by sending IP packets (ICMP Echo Requests).

To use a ping6 command with an IPv6 host name or fully qualified domain names, see DNS resolver for IPv6.

You can issue single or multiple ping tests with varying repetitions and timeout periods to wait for a ping reply.

Replies to each ping test are displayed on the console screen. To stop a ping test before it finishes, press [Ctrl] [C].

For more information about using a ping test, see the current Management and Configuration Guide for your switch.

Syntax

ping6 [ ipv6-address | hostname | switch-number ] [ repetitions 1 - 10000 ] [ timeout 1 - 60 ] [ data-size 0 - 65507 ] [ data-fill 0 - 1024 ] [ source [ ipv6-addr | vid ]] [ oobm ]

Syntax

ping6 [ link-local-address %vlan vid | hostname | switch-number ] [ repetitions 1 - 10000 ] [ timeout 1 - 60 ] [ data-size 0 - 65507 ] [ data-fill 0 - 1024 ] [ source [ ipv6-addr | vid ]] [ oobm ]

Pings the specified IPv6 host by sending ICMP version 6 (ICMPv6) echo request packets to the specified host.

ipv6-address

IPv6 address of a destination host device.

link-local-address %vlan vid

IPv6 link-local address, where %vlan vid specifies the VLAN ID number.

hostname

Host name of an IPv6 host device configured on an IPv6 DNS server.

switch-number

Number of an IPv6-based switch that is a member of a switch stack (IPv6 subnet). Valid values: 1 - 16.

oobm

For switches that have a separate out-of-band management (OOBM) port, oobm specifies that the traffic originates from the out-of-band management port.

repetitions 1 - 10000

Number of times that IPv6 ping packets are sent to the destination IPv6 host.

Default: 1.

timeout 1 - 60

Number of seconds within which a response is required from the destination host before the ping test times out.

Valid values : 1 - 60. Default: 1 second.

data-size 0 - 65471

Size of data (in bytes) to be sent in ping packets.

Valid values: 0 - 65471.

Default: 0.

data-fill 0 - 1024

Text string used as data in ping packets.

Range: up to 1024 alphanumeric characters; Default: 0

source [ ipv6-addr | vid ]

The IPv6 address of the pinging device or the VLAN-ID on which the ping is being sent.

Default : 0 (no text is used).

IPv6 ping tests

HP Switch# ping6 fe80::2:1%vlan10
fe80:0000:0000:0000:0000:0000:0002:0001 is alive, time = 975 ms

HP Switch# ping6 2001:db8::a:1c:e3:3 repetitions 3
2001:0db8:0000:0000:000a:001c:00e3:0003 is alive, iteration 1, time = 15 ms
2001:0db8:0000:0000:000a:001c:00e3:0003 is alive, iteration 2, time = 15 ms
2001:0db8:0000:0000:000a:001c:00e3:0003 is alive, iteration 3, time = 15 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 15/15/15

HP Switch# ping6 2001:db8::214:c2ff:fe4c:e480 repetitions 3 timeout 2
2001:db8:0000:0000:0214:c2ff:fe4c:e480 is alive, iteration 1, time = 15 ms
2001:db8:0000:0000:0214:c2ff:fe4c:e480 is alive, iteration 2, time = 10 ms
2001:db8:0000:0000:0214:c2ff:fe4c:e480 is alive, iteration 3, time = 15 ms

HP Switch# ping6 2001:db8::10
Request timed out.