原创 2012年03月30日 11:01:03


  • Servers often have multiple Ethernet ports, either embedded on the motherboard, or on add-in PCI cards. Linux has traditionally named these ports ethX, but there has been no correlation of the ethX names to the chassis labels - the ethX names are non-deterministic. Starting in Fedora 15, Ethernet ports will have a new naming scheme corresponding to physical locations, rather than ethX. Ethernet ports embedded on server motherboards will be named em<port_number>, while ports on PCI cards will be named p<slot_number>p<port_number>, corresponding to the chassis labels. Additionally, if the network device is an SR-IOV Virtual Function or has Network Partitioning (NPAR) capability, the name will have a suffix of _<virtual_function> or _<partition>.

By changing the naming convention, system administrators will no longer have to guess at the ethX to physical port mapping, or invoke workarounds on each system to rename them into some "sane" order.

This feature affects all physical systems that expose network port naming information in SMBIOS 2.6 or later (specifically field types 9 and 41). Dell PowerEdge 10G and newer servers (PowerEdge 1950 III family, PowerEdge R710 family, and newer), and HP ProLiant G6 servers and newer are known to expose this information, as do some newer desktop models. Furthermore, most older systems expose some information in the PCI IRQ Routing Table, which will be consulted if information is not provided by SMBIOS.

Fedora running as a guest virtual machine will continue to use the ethX names.

Existing installations upgraded to Fedora 15 will not see a change in names unless /etc/udev/rules.d/70-persistent-net.rules is deleted and the HWADDR lines are removed from all /etc/sysconfig/network-scripts/ifcfg-* files, and those files are renamed to use the new device names.

You may continue to write rules in /etc/udev/rules.d/70-persistent-net.rules to change the device names to anything you wish. Such will take precedence over this physical location naming scheme. Such rules may look like:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:22:33:44:55", ATTR{type}=="1", KERNEL=="eth*", NAME="public"

This feature may be disabled by passing "biosdevname=0" on the kernel command line, in which case, behavior will revert to using ethX names.

Upgrading from an earlier version of Fedora (including 15-Alpha or -Beta) to Fedora 15 may result in a change of network device names from an earlier biosdevname naming scheme to the final naming scheme described here. Configuration files must be manually adjusted accordingly.

简单的说想恢复到传统的命名方式,只要在kernel command line 里加上biosdevname=0就可以了,修改grub2 kernel command line的路径为:/etc/default/grub

版权声明:本文为博主原创文章,未经博主允许不得转载。 http://blog.csdn.net/hshl1214/article/details/7410485


  • dog250
  • dog250
  • 2010年02月09日 22:33
  • 8339

Fedora16下编译安装GCC 4.7

GCC4.7版本增强了C++11的支持,但Fedora16的GCC版本却迟迟不能升级到GCC4.7,只好自己编译安装 GCC的编译安装指导可以参考http://gcc.gnu.org/ins...
  • xplizm
  • xplizm
  • 2012年05月27日 06:53
  • 2118


在网卡设备的驱动中首先会调用     ndev = alloc_etherdev_mq(sizeof(struct hns_nic_priv), NIC_MAX_Q_PER_VF);     ...
  • tiantao2012
  • tiantao2012
  • 2017年07月27日 11:14
  • 400


此文转载于http://www.cnblogs.com/sheling/archive/2011/11/12/2246640.html 最近刚刚开始用fedora,但可以明显感到fedora的用户不...
  • u011435712
  • u011435712
  • 2014年11月29日 14:17
  • 670

Download Fedora 16 CD / DVD ISO

Download Fedora 16 CD / DVD ISO
  • u012965373
  • u012965373
  • 2016年04月23日 13:05
  • 7041


目前在fedora16下,yum安装mysql的最新版本是5.5.28,不幸的是在systemctl start mysqld.service阶段会报错。这是一个bug,不过还好有两个解决方法: 1...
  • better0332
  • better0332
  • 2012年11月21日 17:00
  • 2560


  • iOSbird
  • iOSbird
  • 2016年07月01日 01:44
  • 6900


--网卡上添加设备 /sbin/ifconfig eth0:1 broadcast   netmask u...
  • shenfuli
  • shenfuli
  • 2014年01月22日 15:37
  • 864


这个问题其实没有什么意思,知道了问题的答案能表明一个人技术水平有多高吗?不能!这个问题有答案以及有意义吗?答案都是没有!那我还为何一直对这 个问题死死揪住不放?这类问题可以提高一个人的素质以及了解一段...
  • wangyi1988wang
  • wangyi1988wang
  • 2013年12月29日 20:52
  • 832

fedora16 下安装 gcc4.7.1

去gcc官方网站 下载最新版本的gcc-4.7.0.tar.bz2,同时在infrastructure目录下寻找下载【必须】的mpc-0.8.1.tar.gz、mpfr-2.4.2.tar.bz2,去...
  • statdm
  • statdm
  • 2012年07月17日 20:08
  • 2313