LARTC
[Top] [All Lists]

[LARTC] two routes, non-permanent higher proiority

To: lartc@mailman.ds9a.nl, bob.beers@gmail.com
Subject: [LARTC] two routes, non-permanent higher proiority
From: "Randy Wallace" <randywallacejr@gmail.com>
Date: Thu, 12 Apr 2007 07:34:13 +0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hi3yF7tabCA8aHDNy4YdPnhxuIxQ9TgfqNArYhAZZ/i7Yt91GOqmRaFYhGUotW5IF97Eh1zfC6FzLn3jdUFd1LPi8zJlbZTx6vXNT4BQXyHuoWRYCasbY2nBsF2VbzPJz5/tADjnO3+VhEz2TotzqmbZjiJbOGCvLeIX2mhANfE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Cvzf8AUylmqV5uI2nVfmogr/SwecvUohJ3jUaIXDpRaH0zIEL7tQJsZfyptR9dyAhA/pSZ7dO3flGjw8po1sM5py4LSHNbovzyBSC2g+zSUEKoaRI302DaLT1zbjQ14cZJXDzn/KqVrI2G812LtwGqZcKwJs8c5nhZM5PYLGAeA=
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
Sender: lartc-bounces@mailman.ds9a.nl
I would write a script that would check for connectivity to the
internet over the ethernet port for internet.

If your slackware router is always connected, and communicating, with
the satellite modem, though not always passing real internet traffic,
you could leave the interface 'up'.  From there, you could write a
simple ping-check type script that would ping the satellite gateway,
which would only be visible when the dish is communicating to the NOC.

For example:

if

ping -I eth0 xx.xx.xx.xx

is successful then

ip route del default via xx.xx.xx.xx dev ppp0
ip route add default via xx.xx.xx.xx dev eth0

else

ip route del default via xx.xx.xx.xx dev eth0
ip route add default via xx.xx.xx.xx dev ppp0

otherwise, if eth0 is not always talking to the modem (ethernet), then
you could use ethtool to check for ethernet connectivity before trying
to ping, i.e.

if

(ethtool eth0 | grep 'Link detected: ')  == 'yes'

then

ip addr add xx.xx.xx.xx/xx brd + dev eth0

and whatever routes you need to get the satellite gateway.
then run the ping script above.

hope i helped a little,

-Randy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>