From owner-freebsd-questions Sun Dec 31 20:21:30 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 20:21:27 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 57C7437B400 for ; Sun, 31 Dec 2000 20:21:27 -0800 (PST) Received: from [212.238.77.116] (helo=willow.raggedclown.net) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14CwTL-0007BU-00; Mon, 01 Jan 2001 04:21:26 +0000 Received: from btvs.demon.nl (buffy.raggedclown.net [192.168.1.2]) by willow.raggedclown.net (Postfix) with ESMTP id 1C7F25C56; Mon, 1 Jan 2001 05:20:36 +0100 (CET) Received: by btvs.demon.nl (Postfix on SuSE Linux 7.0 (i386), from userid 500) id 4F5D312CA8; Mon, 1 Jan 2001 05:20:45 +0100 (CET) Date: Mon, 1 Jan 2001 05:20:45 +0100 From: Cliff Sarginson To: Greg Lehey Cc: Cliff Sarginson , questions@freebsd.org Subject: Re: Last question this year. Am I connected ? Message-ID: <20010101052045.B936@buffy.raggedclown.net> References: <00123121220605.01056@buffy> <20010101143509.D44043@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010101143509.D44043@wantadilla.lemis.com>; from grog@lemis.com on Mon, Jan 01, 2001 at 02:35:09PM +1030 Sender: cliff@raggedclown.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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