LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 05:20 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 06: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, 06: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, 06:21 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 07:05 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 07:17 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
Old 01-30-2010, 10:09 AM   #8
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

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, 12:02 PM   #9
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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, 12:46 PM   #10
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

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


Reply



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 04:23 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
How To Rename Ethernet Card Eth1 to Eth0 chammoud Linux - Networking 4 04-20-2005 06:01 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
How do you switch the default ethernet adapter (eth0 to eth1)? scoobdoobery Linux - Networking 3 09-05-2004 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration