I ran across two entries in a linux routing table that both have the same destination, but have different gateways. How would this traffic be routed? I've been searching around online for additional information, as it seems like this type of setup would be common, although I am having a difficult time tracking down any information on this (might be wording it incorrectly). I am assuming that the route with a gateway of 12.12.12.12 would automatically be used, or would traffic be load balanced over the two routes instead?
11.11.11.11 12.12.12.12 255.255.248.0 UG 0 0 0 eth1
11.11.11.11 0.0.0.0 255.255.248.0 U 0 0 0 eth1
Thank you
To find out how it works try:
it will tell you where/how packet with such parameters gets routed