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

Re: Portable way to get my NICs' IPs

Stephen R Laniel wrote:

Is there a portable way to

1) get a list of all my NICs (eth0, eth1, ath0, whatever);
2) get all their IPs?

For some reason I'm having a hard time figuring this out.
And I need it to run across Gentoo, Debian, FreeBSD and
others, so it needs to be portable. I assume there's some
POSIX-approved way to do this, right?

I'd have thought that ifconfig was pretty portable and would give you the infomation you want.



I will live forever, or die trying.

Reply to: