Date: Tue, 11 Jul 2000 17:08:15 -0600 (MDT) From: Nick Rogness <nick@rapidnet.com> To: Trumpy <freebsd-q@cambridge.lh.net> Cc: freebsd-net@freebsd.org Subject: Re: Routed and multiple routes... Message-ID: <Pine.BSF.4.21.0007111659340.77366-100000@rapidnet.com> In-Reply-To: <Pine.SGI.4.21.0007111547250.10832-100000@cambridge.lh.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Jul 2000, Trumpy wrote: > 2) Two default routes, one out to a router on the new > subnet, and one out to a router on the old subnet, the > first more preferenced such that if it goes down, default > traffic will start going out to a router on the old subnet. I have had this problem before with 2 default routes to the same network for different gateways. Read more below. > I've tried running routed, but when I enter the default > routes in /etc/gateways and then start routed, I get: > > Jul 11 16:06:47 god routed[26243] unreachable gateway > 192.168.0.254 in /etc/gateways > Haven't tried this with routed. > > 192.168.0.254 10.0.0.254 > ___________ ___________ > | NEW | | OLD | > | BORDER |----------------| BORDER | > | ROUTER | | ROUTER | > |_________| |_________| > | | > | | > (preferred | | > route) | ________________ | > | | FreeBSD 3.4 | | > | | | | > 192.168.0.25 -> ------|eth0 eth1|------- <- 10.0.0.25 > | | > |--------------| > > Any ideas? Do I need to try gated? Gated may still not help much (haven't tried it). This is what I have done in the past (easier): # Prefered gateway route add -net 0.0.0.0 -netmask 128.0.0.0 192.168.0.254 route add -net 128.0.0.0 -netmask 128.0.0.0 192.168.0.254 #Backup gateway route add -net 0.0.0.0 -netmask 0.0.0.0 10.0.0.254 This will work because the first 2 routes are more specific than the backup route...so it is the preferred route. They still point to basically the same network, one is a supernetted version of the 2 smaller networks. Nick Rogness - Speak softly and carry a Gigabit switch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007111659340.77366-100000>