Ask about ping on VyOS 1.5

Hallo guys, i want to ask about ping, i use vyos 1.5, and i will to ping a address with source-address, but in vyos 1.5 i cannot run ping x.x.x.x source-address x.x.x.x. In vyos 1.4 i can ping x.x.x.x source-address x.x.x.x. Anyone can help me guys? Does version 1.5 no longer provide ping with the source-address option?

My 1.5-rolling (VyOS 1.5-rolling-202311081451) have ability to select source-address, however its a bit buggy when it comes to vrf (there is a task for the brokeness of vrf when it comes to DNS lookups etc):

vyos@vyos:~$ ping ping.sunet.se 
Possible completions:
  <Enter>               Execute the current command
  adaptive              Ping options
  allow-broadcast
  audible
  bypass-route
  count
  deadline
  do-not-fragment
  flood
  interface
  interval
  ipv4
  ipv6
  mark
  no-loopback
  numeric
  pattern
  quiet
  record-route
  size
  source-address
  timestamp
  tos
  ttl
  verbose
  vrf
1 Like

Thanks sir, its solved

If you got vrf going you probably need to run the command as:

ip vrf exec ${VRF} ${CMD}

or manually do a “force vrf ${VRF}” and then run the command as is like “ping ping.sunet.se”.

Here is the task I had in mind:

https://vyos.dev/T5371

2 Likes

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