Features/ConsistentNetworkDeviceNaming

From FedoraProject

< Features(Difference between revisions)
Jump to: navigation, search
(more systems affected)
Line 25: Line 25:
 
System Administrators can then use BIOS-provided names, which are consistent and not arbitrarily named, for their network ports.  This eliminates the confusion that non-deterministic naming brings, and eliminates the use of hard-coded MAC address based port renaming which a) is racy and error-prone, and b) introduces state into an otherwise stateless system.
 
System Administrators can then use BIOS-provided names, which are consistent and not arbitrarily named, for their network ports.  This eliminates the confusion that non-deterministic naming brings, and eliminates the use of hard-coded MAC address based port renaming which a) is racy and error-prone, and b) introduces state into an otherwise stateless system.
  
This is known to affect Dell PowerEdge 10G and newer servers, and HP 5G and newer servers, and any system that expose network port labels in SMBIOS 2.6 fields.
+
This is known to affect Dell PowerEdge 10G and newer servers, and HP 5G and newer servers, and any system that expose network port labels in SMBIOS 2.6 fields (later versions of SMBIOS also have this information).
  
 
== Scope ==
 
== Scope ==
Line 59: Line 59:
 
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.
 
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 systems that expose network port naming information in SMBIOS 2.6 (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.
+
This feature affects all 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.
  
 
Existing installations upgraded to Fedora 15 will not see a change in names unless /lib/udev/rules.d/70-persistent-net.rules is deleted and the HWADDR lines are removed from all /etc/sysconfig/network-scripts/ifcfg-* files.
 
Existing installations upgraded to Fedora 15 will not see a change in names unless /lib/udev/rules.d/70-persistent-net.rules is deleted and the HWADDR lines are removed from all /etc/sysconfig/network-scripts/ifcfg-* files.

Revision as of 22:36, 30 November 2010

Contents

Consistent Network Device Naming

Summary

On Dell and HP servers with multiple network ports on the motherboard, name them lomX rather than ethX.

Owner

Current status

  • Targeted release: Fedora 15
  • Last updated: 2010-11-30
  • Percentage of completion: 100%

Detailed Description

Systems, particularly servers, with multiple network ports, name the ports ethX in a non-deterministic order, and are therefore not useful for system administrators.

The proposal is as follows:

Benefit to Fedora

System Administrators can then use BIOS-provided names, which are consistent and not arbitrarily named, for their network ports. This eliminates the confusion that non-deterministic naming brings, and eliminates the use of hard-coded MAC address based port renaming which a) is racy and error-prone, and b) introduces state into an otherwise stateless system.

This is known to affect Dell PowerEdge 10G and newer servers, and HP 5G and newer servers, and any system that expose network port labels in SMBIOS 2.6 fields (later versions of SMBIOS also have this information).

Scope

  • See above

How To Test

  • System-Under-Test must expose SMBIOS 2.6 Type 9 and/or Type 41 fields. Dell PowerEdge 10G or newer server (PE 1950 III class, or R610 class), or HP ProLiant 380 (G5 or G6).
  • biosdevname must be installed on the target system.
  • erase /lib/udev/rules.d/70-persistent-net.rules file. This is where naming is persisted across reboots.
  • reboot the system
  • Following reboot:
    • /sbin/ifconfig -a must show LAN-on-Motherboard ports named em[1234]
    • em[1234] must correspond to the chassis labels. Verify using ethtool -p em[1234] and watch the lights blink.
  • Installing using Anaconda:
    • anaconda should present network devices to use, having the new naming convention.

User Experience

Ethernet NICs embedded on the motherboard will be named em[1234] rather than ethX. PCI add-in card NICs will be named pci<slot>#<port>_<vf>

Dependencies

None

Contingency Plan

None necessary, revert to previous release behaviour.

Documentation

Release Notes

  • 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 on servers 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 pci<slot_number>#<port_number>, corresponding to the chassis labels. Additionally, if the network device is an SR-IOV Virtual Function, the name will have a suffix of _<virtual_instance>.

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

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


Comments and Discussion