Hello,
(E-Mail Removed) a écrit :
>>>Given a machine that has two NICs (eth0 and eth1), with both of them
>>>being on the same network, with the same subnet mask, etc. What would
>>>be the default routing behaviour is I, say, ping yahoo.com? Would it
>>>go over eth0 or eth1?
>>
>>To default gateway.
>
> To default gateway, but via which device?
The device specified in the chosen best route for the destination. If
there are multiple best route with equivalent priority, I like to
consider that the chosen one among then is unpredictable.
> Do you mean the default gateway specified below:
>
> 10.10.88.0/22 dev eth0 proto kernel scope link src 10.10.88.67
> 10.10.88.0/22 dev eth1 proto kernel scope link src 10.10.88.104
Does yahoo.com (216.109.112.135 or 66.94.234.13) match 10.10.88.0/22 ?
No -> route not chosen.
> 169.254.0.0/16 dev eth1 scope link
Does yahoo.com (216.109.112.135 or 66.94.234.13) match 169.254.0.0/16 ?
No -> route not chosen.
> default via 10.10.88.1 dev eth0
Does yahoo.com (216.109.112.135 or 66.94.234.13) match 0/0 (default) ?
Yes -> route chosen, via device eth0.
> Meaning that if a packet is candidate for both interfaces, then the
> default rule is opted for, in this case resulting in the default
> gateway being reached via eth0?
No. See above. The default route is chosen when no other route matches.
Here, your box would face a dilemma when sending a packet to a
destination in 10.10.88.0/22, but not when sending to the default gateway.
> As an aside, what does this routing rule mean?
>
> 169.254.0.0/16 dev eth1 scope link
It's a link-local non routable block mainly used by zeronconf and the like.