LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 01-29-2010, 06:01 AM   #1
rohit0825
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Rep: Reputation: 15
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
 
Old 01-29-2010, 06:20 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,526

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
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.
 
Old 01-30-2010, 07:07 AM   #3
rohit0825
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Original Poster
Rep: Reputation: 15
does anyone has another solution ????
 
Old 01-30-2010, 07:16 AM   #4
rohit0825
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Original Poster
Rep: Reputation: 15
please provide a solution for fedora core 12
 
0 members found this post helpful.
Old 01-30-2010, 07:21 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
Old 01-30-2010, 08:05 AM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,526

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
Quote:
Originally Posted by rohit0825 View Post
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.
 
Old 01-30-2010, 08:17 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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 08:25 AM. Reason: possibly store
 
Old 01-30-2010, 11:09 AM   #8
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX
Posts: 565

Rep: Reputation: 57
Also don't forget to update your configs in /etc/network/interfaces. Don't want to have the wrong config applied to your nics.
 
Old 01-30-2010, 01:02 PM   #9
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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.
 
Old 01-30-2010, 01:46 PM   #10
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX
Posts: 565

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet Interface changed name (eth1 > eth0) liri Linux - Server 1 10-25-2009 05:23 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 07:40 AM
How To Rename Ethernet Card Eth1 to Eth0 chammoud Linux - Networking 4 04-20-2005 07:01 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 06:57 PM
How do you switch the default ethernet adapter (eth0 to eth1)? scoobdoobery Linux - Networking 3 09-05-2004 02:29 PM


All times are GMT -5. The time now is 12:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration