backup static routes for freebsd (default)

Ezra Banoba ezra at cfi.co.ug
Wed Aug 6 09:50:08 PDT 2003


Hi,
It works like magic.
But then, ... that means I still would have to use a script to mark the
interface as down when the remote gateway is inaccessible. Or is there a way
to automagically mark the interface down if the network is inaccessible?

Ezra Banoba
Systems Administrator/Programmer
Computer Froniters International
Plot 32 Lumumba Avenue
www.cfi.co.ug
+256 031260485

-----Original Message-----
From: Philip Payne [mailto:philip.payne at uk.mci.com]
Sent: Wednesday, August 06, 2003 1:56 AM
To: Nick Rogness; Ezra Banoba
Cc: Philip Payne
Subject: RE: backup static routes for freebsd (default)


Hi,

> 	# route add 0.0.0.0 PRIMARY_GW -netmask 127.0.0.0
> 	# route add 127.0.0.0 PRIMARY_GW -netmask 127.0.0.0
> 	# route add default SECONDARY_GW

Good thinking, more specific routes take precedence over less specific ones,
you always forget the fundamental stuff ;-) ... and it's a routing only
solution so no scripts, great.

Unfortunately I'm not in a position to try it so, Ezra, if it works let me
know for future reference. Would much appreciate it.

Thanks,
Phil.




More information about the freebsd-questions mailing list