Hi list,Hello,
If I understand correctly, packets sent to the all-ones
broadcast address only go out through a single interface.
IIRC, Linux 255.255.255.255 as a normal IP address. Therefore it will follow the route for such an address and select the interface it is associated (probably eth0 if you are on a LAN).
My question is threefold:
1. Why doesn't Linux send 255.255.255.255 packages through
all network interfaces? (I realize that this is
probably not a Linux-specific question.)
cf 1
2. How does it choose which interface to send through?
My first guess was that it just took the first Ethernet
interface and used that for broadcasting. But playing
around with nameif, this seems not to be the case.
Again, I'm not sure, but I think that you can force the interface by adding a special route for IP 255.255.255.255 and with mask 255.255.255.255 to the interface you want.
3. Can I set the default broadcast interface explicitly?
For example, say I wanted broadcasts to go out over eth1
by default, instead of over eth0. What if I wanted them
to get sent through tap0?