Post #3102921
2026-06-04 19:15 UTC
It’s perfectly possible on Linux to have several network adapters with the same IP address, or several default routes.
Most server applications will listen to 0.0.0.0 address, which means all network interfaces. Any incoming TCP connection will remember it’s network interface, and the server will send responses to the same interface.
This will not work for UDP connections, and for outgoing TCP connections - they will always choose the network interface with the lowest metric, which you can print with ip r command.
Replies (2)
-
@ReluctantMuskrat@lemmy.world 2026-06-04 20:01
Will UDP packets produce an error when sent or will they simply be received twice, potentially causing errors/issues?
-
@non_burglar@lemmy.world 2026-06-04 23:50
Is it possible to configure interfaces this way? Yes. Will it work? No, not without bonding, and not with WiFi as one of the interfaces.