backup static routes for freebsd (default)
spreng at socket.ch
Tue Aug 5 02:17:40 PDT 2003
On Mon, Aug 04, 2003 at 11:52:54PM -0700, Ezra Banoba wrote:
> I have a gatway box running freebsd 4.8 and several links to the internet
> via different ISP's.
> This box is connected directly to one of the ISP's but also has access to
> the other gatways via the LAN.
> I would like to setup static backup (default) routes such that when and if
> the main link goes down, the default route for this box is automatically
> changed to point to another router on the LAN.I am having trouble
> implementing this on freebsd.
> Any ideas?
you might want to take a look at the ng_one2many(4) manpage. It is a
module for the netgraph(4) subsystem which allows routing over several
If you want a really cheap & dirty solution, you could simply write a
script that checks if the main gateway is down and then changes the
default route to your backup router.
hope that helps...
More information about the freebsd-questions