logoalt Hacker News

WhyNotHugotoday at 2:19 AM2 repliesview on HN

It's not the same as IPv4. IPv4 doesn't solve this problem. If eth0 and eth1 are both 169.254.0.20 on two different networks, you can't specify that you want to ping 169.254.0.1 on a specific interface. There's no way to disambiguate both destinations.


Replies

fragmedetoday at 3:43 PM

https://linux.die.net/man/8/ping

ping takes a -I argument you specify which interface to use.

szniotoday at 6:52 AM

except in ipv4 getting a link-local address means "I fucked up DHCP" and isn't really meant to be a feature it didn't really work in ipv4 land, and as per the OP, doesn't work in ipv6 land too. Just give everything a proper address and leave link-local to mdns or whatever it was meant to support

show 1 reply