Page MenuHomeVyOS Platform

ping cannot force ipv4 or ipv6


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


Difficulty level
Unknown (require assessment)
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:

[email protected]:~$ ping source-address                                                         
Possible completions:
  <Enter>       Execute the current command
  <x.x.x.x>     Ping options

@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.