LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing ethernet adapter name eth0 to eth1 and vice versa. (http://www.linuxquestions.org/questions/linux-newbie-8/changing-ethernet-adapter-name-eth0-to-eth1-and-vice-versa-785564/)

rohit0825 01-29-2010 05:01 AM

changing ethernet adapter name eth0 to eth1 and vice versa.
 
i have just installed fedora core 12.
my pc has 2 lan adapter.
1. onboard rhine.
2. intel card.

os has given eth0 to onboard card and eth1 to intel but

i want eth0 to intel card and eth1 onboard card.

please help

evo2 01-29-2010 05:20 AM

This can be done with udev rules. The setup might be slightly different over in Fedora land, but on Debian Stable this would be done using each devices mac address in: /etc/udev/rules.d/70-persistent-net.rules . For example I have:

Code:

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:19:21:43:8f:fb", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:90:fe:44:39:ee", NAME="eth1"

Cheers,

Evo2.

rohit0825 01-30-2010 06:07 AM

does anyone has another solution ????

rohit0825 01-30-2010 06:16 AM

please provide a solution for fedora core 12

EricTRA 01-30-2010 06:21 AM

Hi,

Why do you ask for another solution? Is the one using the udev rules pointed out by Evo2 not working for you?

Kind regards,

Eric

evo2 01-30-2010 07:05 AM

Quote:

Originally Posted by rohit0825 (Post 3845962)
please provide a solution for fedora core 12

The solution is the same, but the exact file location/name could be different. Have a look for where all you udev rules are. On a centos machine I have acccess to the rules files are in /etc/udev/rules.d/

Evo2.

r3sistance 01-30-2010 07:17 AM

Please be advised that Fedora Core 12 may also store Hardware (MAC) address in the ifcfg configuration files that may need to be manually updated on top of this else this may cause issues.

worm5252 01-30-2010 10:09 AM

Also don't forget to update your configs in /etc/network/interfaces. Don't want to have the wrong config applied to your nics.

r3sistance 01-30-2010 12:02 PM

I am fairly sure that fedora does not have an /etc/network/interfaces file, this sounds like the network configuration file for Debian, Fedora uses /etc/sysconfig/network-scripts/ and seperated configuration files.

worm5252 01-30-2010 12:46 PM

Gotcha. Been a long time since I worked with Fedora so my memory is a bit spotty.


All times are GMT -5. The time now is 09:02 AM.