[CentOS] EXTERNAL: Re: turning off udev for eth0

Thu Jan 5 21:18:06 UTC 2012
Massey, Ricky <ricky.massey at lmco.com>

There are actually three Ethernet ports (eth0, eth1, and eth2).  We use this method to kickstart many servers with the same configuration.  The HWADDR is removed from the ifcfg-ethx files.  Udev will process the files in the rules.d directory in order. The closest link I have found is http://sicherheitsschwankung.de/post/jan/2005-10-13/renaming-network-devices-udev.  Also, I should point out we are using CentOS 5.5.

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell
Sent: Thursday, January 05, 2012 12:58 PM
To: CentOS mailing list
Subject: Re: [CentOS] EXTERNAL: Re: turning off udev for eth0

On Thu, Jan 5, 2012 at 7:58 AM, Massey, Ricky <ricky.massey at lmco.com> wrote:
> We use the following from a kickstart script using the PCI bus location for the NICs:
>
> echo "ID==\"0000:04:04.0\", NAME=\"eth0\"" >> /etc/udev/rules.d/70-netrename.rules
> echo "ID==\"0000:05:00.0\", NAME=\"eth1\"" >> /etc/udev/rules.d/70-netrename.rules
> echo "ID==\"0000:05:01.0\", NAME=\"eth2\"" >> /etc/udev/rules.d/70-netrename.rules
>

That looks like what I need, but I don't understand it.  Is there any
documentation for how that stuff works, or can you elaborate?  And if
you do that, can you remove the HWADDR entries from the ifcfg-eth?
files and have them stick to the right devices?

-- 
  Les Mikesell
    lesmikesell at gmail.com
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos