[SATLUG] **SOLVED** Routing from one box to two different ISPs
David Salisbury
david.salisbury at momentumweb.com
Fri Apr 6 14:57:58 CDT 2007
>> Destination Gateway Genmask Flags Metric Ref Use Iface
>> <DSL Netmask> * 255.255.255.255 UH 0 0 0 eth0
>> <RR Netmask> * 255.255.255.255 UH 0 0 0 eth1
>> <RR Broadcast> * <RR Netmask> U 0 0 0 eth1
>> <DSL Broadcast> * <DSL Netmask> U 0 0 0 eth0
>> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
>> default <DSL Gateway> 0.0.0.0 UG 0 0 0 eth0
<snipped>
> Are the first two entries necessary?
Perhaps not? But I didn't add them explicitly. They were added during the
following of the steps for setting up the split access. Also not present in
the above is the ruleset that "directs" things, which basically says "use
this routing table for this interface" kind of thing, so maybe those rules
use those entries for something?
> Also, I don't think you are using RR for any outgoing packets except
> those addresses that match <RR Broadcast>/<RR Netmask>.
Well, right now, all I want is for packets that come in the RR way to go out
the RR way, thus allowing services to work on either IP. And *that's*
working.... I did try to "route out" through RR by changing the default
gateway to the RR gateway IP, and that didn't work, but I haven't had time
to fiddle with it yet, but that may start to get into what you're referring
to (2 "actual" gateways). But it seems like the multipathing may be part of
it too?
> Also, I think your definitions of Netmask and Broadcast in column one
> are not the standard for netmask and broadcast.... <snip> Neither makes
> any sense for a Destination.
Well, all I can say is, the "netmask" that's in there is the same type of
netmask you're referring to (they're the netmasks given to us by the
provider), and the ones that mention Broadcast are the broadcast IPs for
each of our little slices of the 'net apparently, since when I try to ping
either one it says something like "Are you sure you want to ping the
broadcast? Try -b". The broadcast IPs were not entered explicitly either,
and apparently were "calculated" based off the IP address of the particular
interface and the netmask, since that's all I ever "gave" to the routing
table. I agree it doesn't make sense to have a netmask or broadcast as a
destination, but it must be using those for something else in the routing
somehow I guess?
Dave
More information about the SATLUG
mailing list