Page MenuHomeVyOS Platform

ping cannot force ipv4 or ipv6
Closed, ResolvedPublicFEATURE REQUEST

Description

The ping command is missing the options ipv4 and ipv6 to force resolving a hostname to its IPv4 or IPv6 address.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202206270217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

aderouineau created this task.
aderouineau created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Feature Request".

Agree that both options are not available in cli.. But, you can use source-address:

vyos@vyos:~$ ping fqdn.example.com source-address                                                         
Possible completions:
  <Enter>       Execute the current command
  <x.x.x.x>     Ping options
  <h:h:h:h:h:h:h:h>

@n.fort source-address is useful especially when more precision is needed. At the moment its use is cumbersome as it does not provide help hint on the addresses assigned to the router, forcing an operator to first list those addresses.

n.fort changed the task status from Open to Confirmed.Jul 14 2023, 2:02 PM
n.fort claimed this task.