[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Determining IP address of my pc (dial up and/or cable modem)



Quoting Tech Support <support@elbnet.com>:
> run ifconfig

That is one way.  Another is: look at the /etc/ppp/ip-up shell script.
When ppp starts up, it runs this script passing various bits of info
too it.  One of those being your assigned IP.  This script also runs
anything it finds in /etc/ppp/ip-up.d/ (passing the same info).

I wrote a quickie script which saves the info somewhere.  (/var/run seems
like a good place.)

When ppp shuts down, it runs the script /etc/ppp/ip-down and anything it
finds in /etc/ppp/ip-down.d/. 

         bob
-- 
 bob billson        email: reb@bhive.dhs.org        ham: kc2wz
                                                    Linux geek   /)
 "Níl aon tinteán mar do thinteán féin."            beekeeper -8|||}
        --Dorothy                                                \)



Reply to: