LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-19-2009, 04:03 PM   #1
gola10
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Fedora 10 switch eth0 to eth1


I has installed Fedora 10 on a 2 ethernet computer. I need that the ethernet detected as eth1 be eth0.
I deleted all the network cards on the network manager then turn off the computer. Then removed the network card that was detected as eth0 and rebooted. Added a network card on network manager and it is set as eth1 again but it is he only ethernet card on the computer. Where do i erase all previous detected ethernet cards so it will not remmenber them?
 
Old 02-20-2009, 10:48 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The files are in /etc/sysconfig/network-scripts. They are in the form of "ifcfg-<dev>" e.g. ifcfg-eth0, ifcfg-eth1.

You want to make sure this directory has only a single ifcfg file for each device. Some people make copies and those are seen on start up and confuse things.

The ifcfg file should have the MAC Address of the specific NIC. You ought to be able to make eth1 eth0 simply by copying ifcfg-eth1 over ifcfg-eth0 then edit the file to insure it calls itself eth0 rather than eth1. Then run "service network restart".

Be sure you save all the ifcfg-<dev> files to an alternate location before you change anything. If it doesn't work you can put them back and restart to get back where you started.
 
Old 03-09-2009, 03:05 PM   #3
gola10
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
What about /etc/udev/rules.d/70-persistent-net.rules. Should it change it there too.
I ran a find for the occurrence of the mac number of the network card and found it on this file.
 
Old 03-09-2009, 05:21 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
OK that's a new one. Looking at an F10 system here I see it ties device name (eth0, eth1 etc) to specific MAC addresses. Given that you should definitely update the rules file. (Save a copy to /root first.) Make sure the MAC address matches the interface (e.g. the line that has eth0 make sure it has the same MAC address as what you what to be eth0 in the ifcfg-eth0).
 
  


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
how do i assign/switch eth0 & eth1 the-sloth Linux - Networking 10 02-05-2011 12:48 PM
ADSL+D-LINK SWITCH+eth0+eth1 weLinux Linux - Networking 0 02-07-2006 12:36 PM
switch eth0 and eth1 rubella Linux - Networking 1 02-07-2006 09:27 AM
eth0 and eth1 switch places on reboot? slayer17 Linux - Networking 8 12-14-2005 08:33 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 - Distributions > Fedora

All times are GMT -5. The time now is 10:57 AM.

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