"Joe & Sesil Morris (NTM)"
/sbin/ifconfig | grep inet | grep -v 127.0 | grep -v inet6 | cut -f2 -d: | cut -f1 -d" "
A shorter pipe may be more effective, e.g. for eth0: /sbin/ifconfig eth0 | awk -F '[: ]+' '/inet addr:/ {print $4;}' -- Alexandr.Malusek@imv.liu.se
Well i try both those lines on my friends machine and it didnt get the hidden ip so called the lines work fine for an ppp connect but he is using DSL and it uses NAT and when we do route -n it shows an 10 ip # so i guess we still looking for some line to still pull the ip from an NAT router still hoping to find an way thanks in advance BOB On 8 Nov 2001, Alexandr Malusek wrote:
"Joe & Sesil Morris (NTM)"
writes: /sbin/ifconfig | grep inet | grep -v 127.0 | grep -v inet6 | cut -f2 -d: | cut -f1 -d" "
A shorter pipe may be more effective, e.g. for eth0:
/sbin/ifconfig eth0 | awk -F '[: ]+' '/inet addr:/ {print $4;}'
-- Alexandr.Malusek@imv.liu.se
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (2)
-
Alexandr Malusek
-
Bob B