[CentOS] again, nic driver order

Mon Nov 23 02:33:18 UTC 2009
Tom H <tomh0665 at gmail.com>

On Mon, Nov 23, 2009 at 2:38 AM, Gordon McLellan <gordonthree at gmail.com> wrote:
> The archives seem to suggest fiddling with udev to
> be the answer.  So I modify /etc/udev/rules.d/60-net (or something)
> and add a few rules found in an ancient example (those aren't my mac
> addresses):
> KERNEL=="eth?", SYSFS{address}=="00:37:e9:17:64:af", NAME="eth0"  #
> MAC of first NIC in lowercase
> KERNEL=="eth?", SYSFS{address}=="00:21:e9:17:64:b5", NAME="eth1"  #
> MAC of second NIC in lowercase
>
> Now, all three network cards get assigned as eth0! eth1 and eth2 are
> no longer found. The pci-express nics (onboard) get detected first,
> and the pci nic is last, so it ends up "owning" the eth0 alias.

Changing SYSFS to ATTR should do it.