linux-l: IP-Variable ...

Anselm Hinderling aha at zach.absinth.net
So Apr 16 18:46:51 CEST 2000


On Sun, Apr 16, 2000 at 03:39:32PM +0200, asmodeus wrote:
> Hi allerseits,
> weiss jemand in welcher Variable (bash) SuSE (hach, doch geoutet ...) nach
> einem ippp0 connect die aktuelle IP-Adresse ablegt ?

suse wird ja wohl auch nur mit wasser kochen, deshalb hier
die debian-antwort (wenn wir schon beim outen sind):

aus /etc/ppp/ip-up:

# This script is run by the pppd after the link is established.
# It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add
# routes,
# set IP address, run the mailq etc. you should create script(s) there.
#
# Be aware that other packages may include /etc/ppp/ip-up.d scripts
# (named
# after that package), so choose local script names with that in mind.
#
# 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
#    $6   Optional ``ipparam'' value    foo

die antwort wäre also: "$4", gell.

gruss, anselm.

> 
> Ciao, Duncan
> 
> **************************************
> *Duncan Rubinger  -  zrz.TU-Berlin.De*
> *Telefon: 0179 509 54 24 - 890 90 238*
> *E-Mail: duncan.rubinger at TU-Berlin.de*
> **************************************
> 
> ... The Deep Blue ...
> 



Mehr Informationen über die Mailingliste linux-l