I'm trying to learn Linux routing tables and ran into bit of snag. In the example below I'm not sure what is happening. My understanding is 0.0.0.0 means that for line 1 and 2 any packets outside of its network look at the default gateway 10.0.0.1.
Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 40 0 0 eth1 10.1.1.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 0.0.0.0 10.0.0.1 0.0.0.0 UG 40 0 0 eth1
So my question is this, which interface is closer to the Internet? Im not sure if packets immediate leave eth0 and eth1 sends packets to the gateway 10.0.0.1 or if both eth0 and eth1 both route packets to 10.0.0.1 for the Internet.