[CentOS] RHEL 6.1 beta

Fri May 6 04:34:35 UTC 2011
R P Herrold <herrold at owlriver.com>

On Thu, 5 May 2011, Ljubomir Ljubojevic wrote:

> I do not have personal experience with CentOS, but I have seen different
> X86-PC MB's on embedded units/routers recognizing LAN and Wireless NIC's
> differently ones from PCI1 to PCI5, others from PCI5 to PCI1, one MB
> even without any order at all.  I had now Monitor so I had to power the
> unit, guess NIC to connect to, login and see what was recognized in what
> order.

Built from the sources that will become a CentOS 6 series, 
there is a more mature udev implementation, which tracks MAC 
addresses, and assigns them 'durably' to persist at a given 
device name.  Debian testing supports a similar approach, but 
with more manual intervention

I'll try to blog about it, but once one knows the 'secret' it 
is not all that hard to predict -- This unit has three NICs 
(two onboard of the same type and an addon) which do NOT 
'wander around' through reboots

[root at hostname rules.d]# pwd
/etc/udev/rules.d
[root at hostname rules.d]# cat 70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:90:27:a0:fe:bf", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth2"

# PCI device 0x14e4:0x1648 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:e0:81:31:23:8f", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth1"

# PCI device 0x14e4:0x1648 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:e0:81:31:23:8e", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth0"
[root at hostname rules.d]#

----------------------------------

[root at hostname network-scripts]# pwd
/etc/sysconfig/network-scripts
[root at hostname network-scripts]# cat ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=198.49.bb.cc
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
TYPE=Ethernet
HWADDR=00:e0:81:31:23:8e
IPADDR=198.49.bb.dd
[root at hostname network-scripts]#

[root at hostname network-scripts]# uname -a
Linux hostname_elided 2.6.32-71.24.1.el6.x86_64 #1 SMP Fri
 	Apr 8 21:14:02 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux

-- Russ herrold