<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Red Hat / CentOS:  Swap / Change Ethernet Aliases</title> <atom:link href="http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Eric Zhu</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-63802</link> <dc:creator>Eric Zhu</dc:creator> <pubDate>Sat, 22 Oct 2011 15:36:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-63802</guid> <description>CentOS 6.0 implement a new system called NetworkManger to manage network . I have to stop this service first to rename network interface with this resolution.</description> <content:encoded><![CDATA[<p>CentOS 6.0 implement a new system called NetworkManger to manage network . I have to stop this service first to rename network interface with this resolution.</p> ]]></content:encoded> </item> <item><title>By: anas alaayah</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-60363</link> <dc:creator>anas alaayah</dc:creator> <pubDate>Thu, 30 Jun 2011 13:00:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-60363</guid> <description>i&#039;ve followed the steps but when i reboot the system the original mac address back
is there any other solution
thanks all</description> <content:encoded><![CDATA[<p>i&#8217;ve followed the steps but when i reboot the system the original mac address back<br
/> is there any other solution<br
/> thanks all</p> ]]></content:encoded> </item> <item><title>By: Luis Talora</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-54612</link> <dc:creator>Luis Talora</dc:creator> <pubDate>Wed, 05 Jan 2011 13:32:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-54612</guid> <description>Excelent tip! Just what I was looking for. Thanks!</description> <content:encoded><![CDATA[<p>Excelent tip! Just what I was looking for. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Darshak Thakore</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-50657</link> <dc:creator>Darshak Thakore</dc:creator> <pubDate>Wed, 10 Nov 2010 16:35:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-50657</guid> <description>Thanks for the tip gndudeus.
Your tip worked for me with CentOS 5.5
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.</description> <content:encoded><![CDATA[<p>Thanks for the tip gndudeus.</p><p>Your tip worked for me with CentOS 5.5</p><p>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.</p> ]]></content:encoded> </item> <item><title>By: gndudeus</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-50014</link> <dc:creator>gndudeus</dc:creator> <pubDate>Sat, 09 Oct 2010 16:09:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-50014</guid> <description>I encountered this problem today and was able to resolve it using the following steps;
OS: CentOS release 5.2
1) First check hwaddress of your eth0 and eth1 (and any others you may have)-do this by simply using &#039;ifconfig&#039; command and note down the hwaddress.
2) Next enter into your interface config and insert the hwaddr like this vi /etc/sysconfig/network-scripts/ifcfg-eth0. HWADD=mac_address
3) Repeat step 2 for your other network cards.
4) goto /etc/sysconfig/hwconf and under NETWORK, note your driver, e.g device: eth1 driver: r8169. Check this for all your network cards.
5) Now finally 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.</description> <content:encoded><![CDATA[<p>I encountered this problem today and was able to resolve it using the following steps;</p><p>OS: CentOS release 5.2</p><p>1) First check hwaddress of your eth0 and eth1 (and any others you may have)-do this by simply using &#8216;ifconfig&#8217; command and note down the hwaddress.<br
/> 2) Next enter into your interface config and insert the hwaddr like this vi /etc/sysconfig/network-scripts/ifcfg-eth0. HWADD=mac_address<br
/> 3) Repeat step 2 for your other network cards.<br
/> 4) goto /etc/sysconfig/hwconf and under NETWORK, note your driver, e.g device: eth1 driver: r8169. Check this for all your network cards.<br
/> 5) Now finally goto /etc/modprobe.conf<br
/> 6) Match your ethernet cards with their correct drivers, e.g. alias eth0 skge<br
/> 7) Save and reboot.</p><p>The above worked perfectly for me. I hope it does help you too.</p> ]]></content:encoded> </item> <item><title>By: Ploink</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-45120</link> <dc:creator>Ploink</dc:creator> <pubDate>Thu, 10 Dec 2009 12:49:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-45120</guid> <description>In Fedora, aliases are assigned by udev.
As Nicholas did, you can simply change the order by editing /etc/udev/rules.d/70-persistent-net.rules and reboot. You do not need to edit/change anything else.
I figured this out when I replaced a network card.  I started with eth0 and eth1, then replaced eth1 with a different card and ended up with eth0 and eth2.  I deleted the old card from the rules file and changed the new from eth2 to eth1.
I do not recommend to specify the HW address in the ifcfg* files.</description> <content:encoded><![CDATA[<p>In Fedora, aliases are assigned by udev.<br
/> As Nicholas did, you can simply change the order by editing /etc/udev/rules.d/70-persistent-net.rules and reboot. You do not need to edit/change anything else.</p><p>I figured this out when I replaced a network card.  I started with eth0 and eth1, then replaced eth1 with a different card and ended up with eth0 and eth2.  I deleted the old card from the rules file and changed the new from eth2 to eth1.</p><p>I do not recommend to specify the HW address in the ifcfg* files.</p> ]]></content:encoded> </item> <item><title>By: Nicholas Redgrave</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-42061</link> <dc:creator>Nicholas Redgrave</dc:creator> <pubDate>Mon, 15 Jun 2009 16:18:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-42061</guid> <description>I followed the original tip with my Fedora 11 installation but it didn&#039;t work due to a conflict with udev.
I found that I also had to edit &quot;/etc/udev/rules.d/70-persistent-net.rules&quot; and swap the &quot;NAME=eth0&quot; and &quot;NAME=eth1&quot; entries over in that file before it worked.</description> <content:encoded><![CDATA[<p>I followed the original tip with my Fedora 11 installation but it didn&#8217;t work due to a conflict with udev.<br
/> I found that I also had to edit &#8220;/etc/udev/rules.d/70-persistent-net.rules&#8221; and swap the &#8220;NAME=eth0&#8243; and &#8220;NAME=eth1&#8243; entries over in that file before it worked.</p> ]]></content:encoded> </item> <item><title>By: Srinivas.Y</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-41833</link> <dc:creator>Srinivas.Y</dc:creator> <pubDate>Fri, 29 May 2009 09:54:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-41833</guid> <description>Very good tip....</description> <content:encoded><![CDATA[<p>Very good tip&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Jeff Schroeder</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-39863</link> <dc:creator>Jeff Schroeder</dc:creator> <pubDate>Thu, 15 Jan 2009 13:50:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-39863</guid> <description>For those who don&#039;t know, the Redhat/Fedora ifup/ifdown scripts that read the HWADDR variable are using the ip(8) command to set the names.
You can rename eth5 to eth0 like this:
ip link set down eth5
ip link set eth5 name eth0
Afterwards you&#039;ll need to add an ip and up the interface with the ip(8) or ifconfig(8) commands.
---
Jeff Schroeder
http://www.digitalprognosis.com</description> <content:encoded><![CDATA[<p>For those who don&#8217;t know, the Redhat/Fedora ifup/ifdown scripts that read the HWADDR variable are using the ip(8) command to set the names.</p><p>You can rename eth5 to eth0 like this:<br
/> ip link set down eth5<br
/> ip link set eth5 name eth0</p><p>Afterwards you&#8217;ll need to add an ip and up the interface with the ip(8) or ifconfig(8) commands.<br
/> &#8212;<br
/> Jeff Schroeder<br
/> <a
href="http://www.digitalprognosis.com" rel="nofollow">http://www.digitalprognosis.com</a></p> ]]></content:encoded> </item> <item><title>By: James</title><link>http://www.cyberciti.biz/faq/rhel-fedora-centos-howto-swap-ethernet-aliases/#comment-39845</link> <dc:creator>James</dc:creator> <pubDate>Thu, 15 Jan 2009 00:14:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3069#comment-39845</guid> <description>Althought the HW address does address the problem in RHEL4/CentOS4 it doesn&#039;t work right in RHEL5/CentOS5 if the box has mixed onboard and PCI Nics or 3 or more Nics.  I&#039;ve had a devil of a time with these two and the kernel on RHEL/CentOS getting around this.
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 NIC&#039;s 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) doesn&#039;t match.</description> <content:encoded><![CDATA[<p>Althought the HW address does address the problem in RHEL4/CentOS4 it doesn&#8217;t work right in RHEL5/CentOS5 if the box has mixed onboard and PCI Nics or 3 or more Nics.  I&#8217;ve had a devil of a time with these two and the kernel on RHEL/CentOS getting around this.</p><p>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 NIC&#8217;s and having them switch names on me.</p><p>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) doesn&#8217;t match.</p> ]]></content:encoded> </item> </channel> </rss>
