[TriLUG] reliably get network devices
Carl Crider
c.crider at gmail.com
Tue Jun 24 06:28:50 EDT 2008
Don't know if this is what you are looking for. Maybe I'm just confused by
the question.
ifconfig -a
ifconfig | less
On Tue, Jun 24, 2008 at 5:49 AM, Kevin Hunter <hunteke at earlham.edu> wrote:
> Hello List,
>
> I'm looking for a method or tool to give me a reliable and repeatable
> view of the NICs on varying systems. That is, I know what my NICs are
> on my laptop because I individually checked out the machine when I first
> installed the OS, but I no longer have the luxury of manually checking
> the hardware.
>
> With my project du-jour, I install my OS (either on boot or very
> frequently) on my hardware or VMware, and need it to detect the network.
> The problem is that I do not get the same results for the NICs every
> time, even on the same hardware or even across bootups of installed
> instances. For example, sometimes the mobo will have 2 NICs, and the
> order in which the OS sees them is variable. So eth0 is sometimes eth1
> and vice-versa. On another box, it'll be a similar scenario, but with
> ath*, or ra*.
>
> My current method is to grep the dmesg output, but this doesn't *feel*
> like the right way and still doesn't give me a repeatable order. (And
> how I feel is very important! ;-) ) Is there a standard methodology for
> this?
>
> Thanks,
>
> Kevin
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>
More information about the TriLUG
mailing list