Page MenuHomeVyOS Platform

Ping command not working as expected
Closed, WontfixPublicBUG

Description

When using the "interface" flag for the ping command and the interface is specified (dum0 in this instance), there seems to be a different behavior from when you specify the IP address of the interface:

$ ping 10.33.1.2 interface 10.0.12.40
PING 10.33.1.2 (10.33.1.2) from 10.0.12.40 : 56(84) bytes of data.
64 bytes from 10.33.1.2: icmp_seq=1 ttl=64 time=40.9 ms
64 bytes from 10.33.1.2: icmp_seq=2 ttl=64 time=40.9 ms
^C
--- 10.33.1.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 40.867/40.872/40.878/0.202 ms
$ ping 10.33.1.2 interface dum0
PING 10.33.1.2 (10.33.1.2) from 10.0.12.40 dum0: 56(84) bytes of data.
^C
--- 10.33.1.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 29ms

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202104061641
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

@joolli Re-check please it in any Linux system with the option "-I "
Is it different?

ping -I dum0 10.0.12.40
Viacheslav claimed this task.