Solution
This example will change the ethernet device with name dev12345
to eth0
and assumes eth0
currently does not exist.
Down the device before changing any files with the command # ifdown dev12345
. Also remove the kernel module which is
referenced against this device in the /etc/modprobe.conf
. In this example there is a line which has “alias dev12345
“, so perform “
e1000#rmmod e1000
“. It may also be necessary to run “#ifdown
” on any other network devices using this
kernel module. If this step is skipped it may be necessary to undo any file name changes including setting up the
ifcfg-dev12345
file as mentioned below.
Modify the file /etc/sysconfig/hwconf
replacing ifcfg-dev12345
with ifcfg-eth0
. If this file doesn’t exist ignore this
step as this file is simply a generated file from the Red Hat Enterprise Linux installation program:
class: NETWORK
bus: PCI
detached: 0
device: eth0
Modify the file /etc/modprobe.conf
replacing ifcfg-dev12345
with ifcfg-eth0
:
alias eth0 e1000
In the directory /etc/sysconfig/network-scripts/
rename the file ifcfg-dev12345
to ifcfg-eth0
. Edit this file replacing
ifcfg-dev12345
with ifcfg-eth0
:
DEVICE=eth0
If the system-config-network
* tools were used, it may be necessary to remove any file referencing the old device in the
/etc/sysconfig/networking directory
. ie.
# find /etc/sysconfig/networking -name ifcfg-dev12345
/etc/sysconfig/networking/profiles/default/ifcfg-dev12345
/etc/sysconfig/networking/devices/ifcfg-dev12345
# rm /etc/sysconfig/networking/profiles/default/ifcfg-dev12345
# rm /etc/sysconfig/networking/devices/ifcfg-dev12345
At this stage it is now possible to up eth0 with the command # ifup eth0
.
Leave a Reply
You must be logged in to post a comment.