Migrating from Conventional Device Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Tagline A Dell White Paper Narendra_K@Dell.com Charles_Rose@Dell.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 This document is for informational purposes only and may contain typographical errors and technical inaccuracies. The content is provided as is, without express or implied warranties of any kind. © 2012 Dell Inc. All rights reserved. Dell and its affiliates cannot be responsible for errors or omissions in typography or photography. Dell, the Dell logo, and PowerEdge are trademarks of Dell Inc.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Contents Introduction ........................................................................................................... 4 Distributions .......................................................................................................... 4 Pre-requisites ......................................................................................................... 4 Preparation ..................................
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Introduction Network device names in Red Hat Enterprise Linux for Ethernet devices have traditionally followed the ethN naming scheme. In large deployments, the number of devices with eth names and their mapping to physical ports can be overwhelming and inconsistent with hardware peripheral’s locations and changes.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Preparation On the source operating system: The source has network devices with the ethN names. Backing up data and operating system configuration from your system: Refer to Red Hat documentation on how to back up your data and system configuration. Backup existing network device configuration along with udev rules. # export BACKUP_DIR=$HOME/eth-backup; mkdir $BACKUP_DIR # cp /etc/udev/rules.d/70-persistent-net.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Here is a sample output from above, where the first column is the current kernel assigned device name for the interface, column two is the firmware suggested name, and the third column is the assigned MAC address of the device. Save this output for use after you upgrade the system.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 Manual network device reconfiguration For this example, the current system has /etc/sysconfig/network-scripts/ifcfg-eth3. Consult the map generated earlier to find the corresponding new name for the device. Assume that this is em4. The configuration file should now be ifcfg-em4. To rename the network configuration for eth3: 1. Rename the ifcfg-eth3 to ifcfg-em4.
Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6 c. If the firewall is not active and you have the firewall rules defined, use the configuration from /etc/sysconfig/iptables: # cp /etc/sysconfig/iptables /tmp/iptables-old-names d. Edit /tmp/iptables-old-names and replace each occurrence of ethN with the corresponding emX/pXpY name based on the map. e. Replace /etc/sysconfig/iptables with /tmp/iptables to load the rules during subsequent reboots.