I have a server with 2 interfaces. eth0 is 100 times faster than eth1. Though for some reason, every reboot, the default interface is picked at random. To make things more annoying, they both use the same gateway, so selecting the default gateway won't work. How does linux pick the default interface, and how do I select the default one?
Here is my
route -n to help explain the situation a bit.
Destination Gateway Genmask Flags Metric Ref Use Iface 22.214.171.124 0.0.0.0 255.255.252.0 U 0 0 0 eth1 126.96.36.199 0.0.0.0 255.255.252.0 U 0 0 0 eth0 0.0.0.0 188.8.131.52 0.0.0.0 UG 0 0 0 eth1 0.0.0.0 184.108.40.206 0.0.0.0 UG 100 0 0 eth0
PS. This is a VPS, so my provider might also be at fault somewhere. Reason for the second interface is to have another IP for dns, because it only does DNS, its very slow.
EDIT: This is a Ubuntu 10.04 server