[CentOS] rename network card device /dev/p3p2 to /dev/eth0

Tru Huynh tru at centos.org
Thu Sep 27 03:06:18 EDT 2012


On Thu, Sep 27, 2012 at 05:36:36AM +0000, KNOPS Manfred wrote:
> Hi digimer,
> 
> Sorry, I made a mistake.
> "... After rebooting centos generates a device called /dev/et0. ..."
> should be
> "... After rebooting centos generates a device called /dev/eth0. ..."
> 
> CentOS made it. I got what I want.
> 
> Where is the general guide? I didn't understood what you mean.

the keywork you are looking for is biosdevname

Lan-On-Motherboard interfaces
em <port number>
(ethernet-on-motherboard <1,2,..>)
PCI add-in interfacesi
p<slot number>p<port number>_<virtual function instance>

[tru at fural ~]# biosdevname -d | awk '/BIOS device/ {new=$3} /Kernel name/ {old=$3} /Assigned MAC/ {mac=$4; print old" "new" "mac}'
eth0 em1 00:25:90:66:AA:48
eth1 em2 00:25:90:66:AA:49
eth2 p4p1 A0:36:9F:03:28:64
eth3 p4p2 A0:36:9F:03:28:65
eth4 p4p3 A0:36:9F:03:28:66
eth5 p4p4 A0:36:9F:03:28:67

ref:
http://linux.dell.com/files/whitepapers/consistent_network_device_naming_migration_guide_rhel_6.pdf
http://linux.dell.com/files/whitepapers/consistent_network_device_naming_in_linux-v1.3.pdf

Tru
-- 
Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20120927/57638350/attachment.bin 


More information about the CentOS mailing list