Preparation – Dell 1U Rackmount LED Console User Manual

Page 5

Advertising
background image

Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6

5

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.rules $BACKUP_DIR/70-persistent-net.rules

If you have the system-config-network-tui package installed, the network configuration information
is backed up like this:

# system-config-network-cmd –e > $BACKUP_DIR/old_eth_config

If you do not have system-config-network-tui installed, simply copy the network configuration
information:

# cp –a /etc/sysconfig/network-scripts/ifcfg-e* $BACKUP_DIR

Creating mapping between the ethN and the emX names:

List out the mapping of the current name (ethN) and the new name (emX). This mapping requires the
biosdevname executable.

1.

Make sure that all the network interface that you want to migrate are active (up) as shown by
using this command:

# ip link show

2. Install biosdevname from the Red Hat Network (RHN) if your system is subscribed to RHN or

from the Red Hat Enterprise Linux version 6.1 DVD.

a. If the system is subscribed to RHN:

# yum install biosdevname

b. From the Red Hat Enterprise Linux version 6.1 DVD:

# yum localinstall <path_to_dvd_mount>/Packages/biosdevname-<version>.rpm

3. Get the mapping from the current ethN names to the new emX names. Preserve this

information for use post upgrade/migration. There is a sample script that you can use, see the

Sample Scripts

section.

# biosdevname -d | awk „/BIOS device/ {new=$3} /Kernel name/ {old=$3} /Assigned MAC/
{mac=$4; print old” “new” “mac}‟

Advertising