Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-29-2010, 05:01 AM
|
#1
|
LQ Newbie
Registered: Jan 2010
Posts: 23
Rep:
|
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
|
|
|
01-29-2010, 05:20 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
|
|
01-30-2010, 06:07 AM
|
#3
|
LQ Newbie
Registered: Jan 2010
Posts: 23
Original Poster
Rep:
|
does anyone has another solution ????
|
|
|
01-30-2010, 06:16 AM
|
#4
|
LQ Newbie
Registered: Jan 2010
Posts: 23
Original Poster
Rep:
|
please provide a solution for fedora core 12
|
|
0 members found this post helpful.
|
01-30-2010, 06:21 AM
|
#5
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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
|
|
|
01-30-2010, 07:05 AM
|
#6
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by rohit0825
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.
|
|
|
01-30-2010, 07:17 AM
|
#7
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
Last edited by r3sistance; 01-30-2010 at 07:25 AM.
Reason: possibly store
|
|
|
01-30-2010, 10:09 AM
|
#8
|
Member
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567
Rep:
|
Also don't forget to update your configs in /etc/network/interfaces. Don't want to have the wrong config applied to your nics.
|
|
|
01-30-2010, 12:02 PM
|
#9
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
|
|
01-30-2010, 12:46 PM
|
#10
|
Member
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567
Rep:
|
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 06:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|