Beruflich Dokumente
Kultur Dokumente
Main menu
BASH Shell
Linux
CentOS
Debian / Ubuntu
Ubuntu Linux
Suse
RedHat and Friends
Slackware Linux
UNIX
AIX
Mac os x
FreeBSD
FreeBSD Jails (VPS)
Openbsd
Solaris
Troubleshooting
Nginx
Networking
MySQL
See all tutorial topics
Blog
About
Contact us
Forum
RSS/FEED
1 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
Tweet 4
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
2 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
In the end my solution (that worked) was to build my own kernel from a newer
version of source than RH provides (one from Fedora to be exact). Once I did, I
stopped losing NICs and having them switch names on me.
What happens in the above scenario is if you do already have the HWADDR line it
will refuse to initialize the NIC since the HWADDR (mac) doesnt match.
Reply
For those who dont know, the Redhat/Fedora ifup/ifdown scripts that read the
HWADDR variable are using the ip(8) command to set the names.
Afterwards youll need to add an ip and up the interface with the ip(8) or ifcong(8)
commands.
Je Schroeder
http://www.digitalprognosis.com
Reply
Reply
I followed the original tip with my Fedora 11 installation but it didnt work due to a
conict with udev.
I found that I also had to edit /etc/udev/rules.d/70-persistent-net.rules and swap
3 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
Reply
I gured this out when I replaced a network card. I started with eth0 and eth1,
then replaced eth1 with a dierent card and ended up with eth0 and eth2. I deleted
the old card from the rules le and changed the new from eth2 to eth1.
Reply
I encountered this problem today and was able to resolve it using the following
steps;
1) First check hwaddress of your eth0 and eth1 (and any others you may have)-do
this by simply using ifcong command and note down the hwaddress.
2) Next enter into your interface cong and insert the hwaddr like this vi
/etc/syscong/network-scripts/ifcfg-eth0. HWADD=mac_address
3) Repeat step 2 for your other network cards.
4) goto /etc/syscong/hwconf and under NETWORK, note your driver, e.g device:
eth1 driver: r8169. Check this for all your network cards.
5) Now nally goto /etc/modprobe.conf
6) Match your ethernet cards with their correct drivers, e.g. alias eth0 skge
7) Save and reboot.
The above worked perfectly for me. I hope it does help you too.
Reply
With systems that have switched to udev (Fedora, Ubuntu), editing the
70-persistent-net.rules work but for older systems like CentOS 5, this tip is the only
way to safely swap eth devices.
Reply
4 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
Reply
ive followed the steps but when i reboot the system the original mac address back
is there any other solution
thanks all
Reply
Reply
On a cloned (VM) Centos 6.2 machine you will need to delete the below le:
/etc/udev/rules.d/70-persistent-net.rules
/etc/sysconfig/network-scripts/ifcfg-eth0
Reply
the step described by gndudeus worked perfectly for me with Centos 5.2 and 3
network interface, great.
Reply
Leave a Comment
Name *
E-mail *
Website
5 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
You can use these HTML tags and attributes for your code and commands: <strong>
<em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">
Submit
6 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
ERROR
The requested
URL could not
be retrieved
Related Faqs
7 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
Ubuntu Static IP
8 of 9 03/07/2013 12:55 PM
Red Hat / CentOS: Swap / Change Ethernet Aliases http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-sw...
9 of 9 03/07/2013 12:55 PM