I have two internet interfaces in my Shorewall box (DSL & Cable). Currently most traffic out to the internet goes out the Cable link due to that interface having a higher "weight" in ip route tables. However, the system doesn''t autodetect if one of the connections is down, it just tries to use that. Is there an easy way to make the interface status be detected? Thanks Tim
Tim Sutinen wrote:> I have two internet interfaces in my Shorewall box (DSL & Cable). > Currently most traffic out to the internet goes out the Cable link due > to that interface having a higher "weight" in ip route tables. > However, the system doesn''t autodetect if one of the connections is > down, it just tries to use that. Is there an easy way to make the > interface status be detected? >The usual recommendation involves periodically pinging the upstream routers and if one doesn''t respond, adjust the routing table accordingly. Be sure to flush the route cache also when an uplink is lost. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
On Tue, 2003-02-18 at 14:38, Tim Sutinen wrote:> I have two internet interfaces in my Shorewall box (DSL & Cable). > Currently most traffic out to the internet goes out the Cable link due > to that interface having a higher "weight" in ip route tables. > > However, the system doesn''t autodetect if one of the connections is > down, it just tries to use that. Is there an easy way to make the > interface status be detected?Tim, This "Load Balancing" HOWTO by Jack Coates may help. http://leaf.sourceforge.net/pub/doc/howto/LRP-Load-Balancing-HOWTO.html -- Mike Noyes <mhnoyes @ users.sourceforge.net> http://sourceforge.net/users/mhnoyes/ http://leaf-project.org/ http://sitedocs.sf.net/ http://ffl.sf.net/