[CentOS] Strange device labeling in 6.3

Thu Aug 9 18:47:50 UTC 2012
m.roth at 5-cent.us <m.roth at 5-cent.us>

Scott Robbins wrote:
> On Thu, Aug 09, 2012 at 12:33:43PM -0500, Richard Reina wrote:
>> I have just installed 6.3 on a machine that was previously running
>> 5.8. Under 5.8 eth0 was eth0. Now with 6.3 /sbin/ifconfig gives me lo,
>> wlan0 and p4p1 (instead of eth0).  I would like to make the ethernet a
>> static IP as I intend to for this to be machine used on my LAN only.
>> However, when I do /usr/sbin/setup -> Network Configuration the device
>> is not listed.  Can anyone tell me why this is happening and how I can
>> fix it. Or if not how I can set a static and persistent IP address for
>> the ethernet?
>
>
> Well......
>
> I tend to agree with the slashdot commentator who called it
> overcomplicated and unnecessary.   It's another idea from

Yup. The difference between that, and sticking the MAC address into a
simple, existing config file is, oh, that's right, it's k3wl.

> Fedora, the theory, IIRC, was that this way, devices would always have the
> same name, whereas under the method that has been used device names could
> change on a reboot.  (Haven't experienced that myself, but dunno).

I have. Putting the MAC address into ifcfg-eth? fixes it.

<method elided>

EXCEPT that in 6.x, you really need to edit
/etc/udev/rules.d/70-persistant-net.rules, too, or take the MAC out of
ifcfg-eth?, since it needs to be in 70-blahblah.

       mark


>
> If you google Fedora biosdevname you'll come across various explanations.
> To change it back once the thing's been installed, I've always
> done it by first rpm -e biosdevname, then editing
> /etc/sysconfig/network-scripts/ifcfg-whatever, changing the device
> name in there to eth0, changing the name of the file, e.g, ifcfg-p4p1 to
> ifcfg-eth0 and
> restarting.  I haven't gotten it working by just restarting networking,
> but at any rate, if you
> know you don't want it during installation, you can add biosdevname=0 to
> the command line.
>
>
> --
> Scott Robbins
> PGP keyID EB3467D6
> ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
> gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
>
> Spike: Should I really trust you?
> Adam: Scout's honor.
> Spike: You were a Boy Scout?
> Adam: Parts of me.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>