Darrell Burkey was once rumoured to have said: > > Have I got this arse-about or do you mean that all LAN traffic is > > routed through Telstra by default? ould this setup then ensure that > > all internal traffic bound for the server be routed via Telstra? If > > so, wouldn't the interface then see twice the traffic (and Telstra > > charge twice as much) than it normally would? > > Well, I'm not sure how to explain it but that's certainly NOT what happens. > My local traffic stays local and anything that isn't on the local net goes > across the gateway. My understanding of a default gateway is one that is > used when a local route is not available. Do I have it wrong?
Thats on the dollar. The Default route is the fallback if no specific route can be found. Linux, by default (in 2.2 onwards) creates local subnet routes the moment you bring an interface up. So, if you have eth0 as 192.168.99.1/24, and ppp0 is point-to-point 1.2.3.4-1.2.3.5, and your default route is set to 1.2.3.5, your default routing table would look something like: 192.168.99.0/24 via eth0 1.2.3.5/32 via ppp0 default (0.0.0.0/0) via gw 1.2.3.5 (This is not the output from route or netstat -r, this is just a summary). This means that if traffic is destined for 192.168.99.x, it would match the route for 192.168.99.0/24, and will be sent direct over eth0. However, if traffic for 150.203.1.10 was to hit the machine, it'd push it to the default route since neither 192.168.99.0/24 or 1.2.4.5/32 match it. C. -- --==============================================-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==============================================-- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
