On Thu, 24 May 2001, Christophe TROESTLER wrote:

CT> On Thu, 24 May 2001, "Antonio Rodriguez" <[EMAIL PROTECTED]> wrote:
CT> > 
CT> > I know this must be a very stupid question (+/+) <<<< flaming myself
CT> > Any way: I am not sure how I can determine the IP address of my
CT> > machine after I have a dialup connection established. Will the first
CT> > ip given by mtr be mine, or first machine connected to in network?
CT> 
CT> Type (as root)
CT> 
CT> tail -f -n50 /var/log/messages
CT> 
CT> before you launch the dialup connection.  You will see the entire
CT> process, including all the info your provider is sending to you.
CT> After that, you can decide the best way to go depending on the use you
CT> want to make of that IP address...

or it may be just easier to edit /etc/ppp/ip-up and add something like 

echo $4>/etc/ppp/current_ip

or whatever ... 


here is the arg #'s that you can use:

# This script is called with the following arguments:
#    Arg  Name               Example
#    $1   Interface name     ppp0
#    $2   The tty            ttyS1
#    $3   The link speed     38400
#    $4   Local IP number    12.34.56.78
#    $5   Peer  IP number    12.34.56.99


                                                Dingo.


                                      ).|.(
                                    '.`___'.`
                                   ' `(>~<)' `
     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-ooO-=(_)=-Ooo-=-=-=-=-=-=-=-=-=-=-=-=-
      Petr [Dingo] Dvorak                             [EMAIL PROTECTED]
      Coder - Purple Dragon MUD                   pdragon.org port 3333
     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ 369D93 ]=-
                         Oxymoron: Microsoft Works
     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to