Re: Dual Default Gateway Routes
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Mon, 19 Dec 2005 19:43:39 -0600
On Mon, 19 Dec 2005, in the Usenet newsgroup alt.linux, in article
<rdApf.1$Yf3.303@xxxxxxxxxxxx>, M_F_H wrote:
>I have a network where there are two gateways to the Internet;
>both are modems that have unpredictable down times. I'd like to
>set up one Linux computer to act as a gateway to both routes,
>similar to a High Availability Network for web servers.
-rw-rw-r-- 1 gferg ldp 297491 Sep 4 2003 Adv-Routing-HOWTO
>One way that occurs to me is use the route command on the Linux
>box as follows:
>
>route add default gw 192.168.0.1 eth1
>route add default gw 192.168.0.2 eth2
>
>where 192.168.9.[12] point to the two computers where the modems
>are hooked up.
Watch the typos
>Will this work?
If you make those host routes INSTEAD OF network routes, you'll only
run into the problem of two defaults. Meaning:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 4198 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 4198 eth2
Where is 192.168.0.0/24? Is it out eth1 or eth2? The kernel will use the
last one defined. Try
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 4198 eth1
192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 4198 eth2
and then follow the Adv-Routing-HOWTO trying to get those two defaults.
Old guy
.
- References:
- Dual Default Gateway Routes
- From: M_F_H
- Dual Default Gateway Routes
- Prev by Date: Re: alternative to vi
- Next by Date: Re: Howto save kernel panic info to a text file?
- Previous by thread: Dual Default Gateway Routes
- Next by thread: Howto save kernel panic info to a text file?
- Index(es):
Relevant Pages
|