Manual network device reconfiguration – Dell 1U Rackmount LED Console User Manual
Page 7

Names to Consistent Device Names for Ethernet Devices in Red Hat® Enterprise Linux® v6
7
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.
# cd /etc/sysconfig/network-scripts/
# mv ifcfg-eth3 ifcfg-em4
Edit ifcfg-em4 and change DEVICE= from eth3 to em4 as reported by the map.
Make sure that the HWADDR field has the correct hardware address by looking at the map created
earlier.
After the changes, the ifcfg-em4 looks like this:
DEVICE="em4"
BOOTPROTO="dhcp"
...
Using the system-config-network utility to perform network device reconfiguration
In this method, we use the system-config-network-cmd utility to export the network configuration to a
file. Change each occurrence of the older name with the corresponding newer name, and import the
configuration.
1. You can export the current network configuration as a text file with the system-config-
network-cmd tool like this. /tmp/network.config contains the system’s network configuration
information:
# system-config-network-cmd –e > /tmp/network.config
2. Replace each occurrence of the ethN name in /tmp/network.config with the corresponding
emX or pXpY name as provided by the map.
3. Import the modified network configuration.
# system-config-network-cmd –i < /tmp/network.config
4. Verify in /etc/sysconfig/network-scripts/ifcfg-e* that the new names are used for the file
names and also for the DEVICE variable in each of the configuration files.
5. Update firewall rules if you have device specific rules. Make sure that the firewall is running
with the required rules.
a. Make sure the firewall is running:
# iptables -L
b. Save the current firewall rules:
# iptables-save > /tmp/iptables-old-names