A couple of PPP related questions

Ian Hunter ihunter at hotmail.com
Mon May 14 14:20:05 BST 2001


>From: Neil Ford <neil at ourshack.com>
>To: freebsd-users at uk.freebsd.org
>Subject: Re: A couple of PPP related questions
>Date: Mon, 14 May 2001 12:52:37 +0100
>
>On Sun, May 13, 2001 at 11:48:55PM +0100, Paul Civati wrote:
> > Neil Ford <neil at ourshack.com> wrote:
> >
> > > Is it possible to get PPP to write it's process ID out to a file?
> >
> > Don't most daemons log to a file in /var/run?
> >
>This isn't running as a deamon though, I'm using userland PPP.
>
> > > Whats the best way to extract the dynamic IP address that's been
> > > allocated to a machine by an ISP. I ideally want the machine to
> > > mail this detail out everytime it makes the connection.  You can
> > > probably guess where I'm going with this one :-)

I use :-

/sbin/ifconfig -a | grep "10.0.0.200 netmask" | awk '{print $2;}

to get at the IP address and call this in ppp.linkup - you may have to 
change the "10.0.0.2 netmask" to suit.

Hope this helps


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





More information about the Ukfreebsd mailing list