Ping command does not accept IPv6 address (VyOS 1.3)

In operational mode, the ping command does not accept IPv6 address, then need to use ping6.

In config mode, the run ping command does not accept IPv6 address, also the run ping6 is an invalid command in config mode.

Please see sample here,

vyos@vy3a:~$ ping ?
Possible completions:
  <hostname>    Send Internet Control Message Protocol (ICMP) echo request
  <x.x.x.x>
  <h:h:h:h:h:h:h:h>

vyos@vy3a:~$ ping 2602:a200:ffff:ffff:f01:c03:a01:1
ping: Unknown host: 2602:a200:ffff:ffff:f01:c03:a01:1

vyos@vy3a:~$ ping6 2602:a200:ffff:ffff:f01:c03:a01:1
PING 2602:a200:ffff:ffff:f01:c03:a01:1(2602:a200:ffff:ffff:f01:c03:a01:1) 56 data bytes
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:1: icmp_seq=1 ttl=64 time=1.61 ms
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:1: icmp_seq=2 ttl=64 time=2.13 ms
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:1: icmp_seq=3 ttl=64 time=1.89 ms
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:1: icmp_seq=4 ttl=64 time=2.02 ms
^C
--- 2602:a200:ffff:ffff:f01:c03:a01:1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 12ms
rtt min/avg/max/mdev = 1.609/1.910/2.127/0.198 ms

vyos@vy3a:~$ show ver
Version:          VyOS 1.3-rolling-202005100117
Release Train:    equuleus

Hello @ylchang, which VyOS version exactly are you using? I think it was fixed https://phabricator.vyos.net/T2457

vyos@R1# run ping 2602:a200:ffff:ffff:f01:c03:a01:2
PING 2602:a200:ffff:ffff:f01:c03:a01:2(2602:a200:ffff:ffff:f01:c03:a01:2) 56 data bytes
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:2: icmp_seq=1 ttl=64 time=1.93 ms
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:2: icmp_seq=2 ttl=64 time=0.807 ms
64 bytes from 2602:a200:ffff:ffff:f01:c03:a01:2: icmp_seq=3 ttl=64 time=0.744 ms

I am using VyOS 1.3-rolling-202005100117

The fix was added on May 23, I propose update your router to the latest rolling.

thanks, it works after upgrade.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.