multiple default routes
Subsystems (2)
Dear netdev wizards,
it used to be the case that adding a second default route broke networking to the point where nothing gets routed through either of the default routes anymore.
For a while now, I noticed that this isn't the case anymore, but I can't isolate a behaviour that would have me believe that there's a new default I can build on.
If I add a second default route (via a different gateway):
default via 10.100.144.1 dev wifi
default via 10.11.50.5 dev tun-rw-ul
then my old connections (via 10.11.50.5) die, new TCP connections seem to go via 10.100.144.1, but ping does not seem to work:
when I tcpdump on iface 'any', I see e.g. two icmp echo-requests leaving the machine and none coming back:
$ sudo tcpdump -ni any icmp & $ ping -nc1 debian.org PING debian.org (192.25.206.10) 56(84) bytes of data. 16:38:43.720951 IP 10.100.146.103 > 192.25.206.10: ICMP echo request, id 52285, seq 1, length 64 16:38:43.720978 IP 10.100.146.103 > 192.25.206.10: ICMP echo request, id 52285, seq 1, length 64
--- debian.org ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
If I hook tcpdump to the wifi iface, then I just get one packet though, but still no replies.
Could someone please fill me in on the expected behaviour of Linux 2.6.18 and beyond when a second default route is added, or point me to some documentation to read?
Signature · 6 lines
martin | http://madduck.net/ | http://two.sentenc.es/ windows 2000: designed for the internet. the internet: designed for unix. spamtraps: [email protected]