22 Mar
2004
22 Mar
'04
16:13
Hi! Andrea schrieb:
Hallo Experten, Wie frage ich in einem Script die dynamische IP-Adresse meines Providers ab ?
MYIP=`/sbin/ifconfig ippp0 | grep P-t-P | cut -d: -f2 | cut -d" " -f1` - funktioniert so hier nicht. (habe ich von http://home.arcor.de/thomas.litsch/s-ipput.htm)
Das System ist ein Suse 8.2 an einem TDSL-Anschluss.
Um zu klären, das ippp0 ein ISDN Interface ist, Du aber nach DSL (sprich PPPoE) suchst, das imho ppp0 o.ä. heisst, braucht es noch keinen Experten... http://www.google.de/search?hl=de&ie=UTF-8&oe=UTF-8&q=linux+ip+tdsl+auslesen&meta= aus dem zweiten Ergebnis: /sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://' > /tmp/ip-nr Viel Spaß, Uli