Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2001 05:20:45 +0100
From:      Cliff Sarginson <cliff@buffy.raggedclown.net>
To:        Greg Lehey <grog@lemis.com>
Cc:        Cliff Sarginson <cliff@raggedclown.net>, questions@freebsd.org
Subject:   Re: Last question this year. Am I connected ?
Message-ID:  <20010101052045.B936@buffy.raggedclown.net>
In-Reply-To: <20010101143509.D44043@wantadilla.lemis.com>; from grog@lemis.com on Mon, Jan 01, 2001 at 02:35:09PM %2B1030
References:  <00123121220605.01056@buffy> <20010101143509.D44043@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 01, 2001 at 02:35:09PM +1030, Greg Lehey wrote:
> On Sunday, 31 December 2000 at 21:22:06 +0100, Cliff Sarginson wrote:
> > Hello,
> > This may sound like a very silly question...
> > How can I within a script find out if my dialup PPP internet
> > connection is up and running or not ?
> 
>   # ifconfig ppp0
>   ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>           inet 192.109.197.137 --> 139.130.136.129 netmask 0xffffffc0 
> 
> If it's UP and has two addresses, then you're connected.  If you're
> using user PPP, this will be tun0, not ppp0.

Nope...no good.
I am using PPP with dial on demand, but I have a static IP address.
Ifconfig always shows it UP, RUNNING and with both IP addresses.

This was actually my first idea.
But the answer is pppctl (I RTFM)..

Thanks !

Cliff




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010101052045.B936>