OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Auto-choose ethernet card

From: Dawid Zabrocki (adminchs.pl)
Date: Fri Apr 01 2005 - 09:55:03 CST


> I think there's a really easy way to do this that everyone seems to be
> missing (or I'm missing something in the question!).
>
> You can have as many hostname.if files as you wish. Install one for
> each NIC you would likely ever come across (if you want to get fancy,
> make them all hard links, so they only take up one block and a bunch of
> inodes on the disk).

wouldn't it be better to modify /etc/netstart to run dhclient for every
found ethernet device,
and configure hotplugd to run dhclient for any hotplugged ethernet card
?

Its' even easier.