Re: rename network card device /dev/p3p2 to /dev/eth0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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

Attachment: pgpGr8kLzdsiQ.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux