Andy Mayer wrote:

> From: "Edouard Gomez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 10, 2001 8:28 PM
> Subject: [speedtouch] Re: Script
>
> >
> > On Mon, Dec 10, 2001 at 08:17:33PM +0000, alex wrote:
> > >
> > > What happens if 213.208.127.99 (or any other address) goes down?
> > >
> > > Alex.
> > >
> > >
> >
> > The best is to use peer IP, if this IP isn't pingable i think no one could
> > be :-)
> >
> > PEER_IP=`/sbin/ifconfig | grep P-t-P | cut -d ':' -f 3 | cut -d ' ' -f 1`
> >
> > then just #ping $PEER_IP
> >
> > --
> > Edouard Gomez
>
> Cool! Thanks for the neat code.
>
> 213.208.127.99 is actually the IP address of my PPP interface, so that's
> what I was doing in messy sort of way.
>

Using your local IP address of ppp0 probably isn't very reliable. It's possible
for the local ppp0 to be pingable while the rmeote peer isn't (Used to happen
quite a lot on BTO, hasn't happend for a while lately... In fact I've been quite
stable for about a month now since they lost their whole backbone).


>
> Any other comments on my suggested use of "adsl.sh restart" ?
>

Specify the ppp interface directly in ifconfig... Just incase someone has > 1 ppp
interface.

e.g.

REMOTE=`/sbin/ifconfig ppp0 | grep P-t-P | awk -F: '{print $3}' | awk '{print
$1}'`

(Sorry. I used awk in mine. cut is probably quicker by a few ms).


>
> Andy
> ---
> http://cyril.zooburner.com
>
> Liste de diffusion modem ALCATEL SpeedTouch USB
> Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
>
>

--

I don't suffer from Insanity...         | Linux User #237369
        I enjoy every minute of it...   |
                                        |
http://www.travellingkiwi.com/          |





Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to