LinuxQuestions.org
Review your favorite Linux distribution.
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 07-05-2005, 10:43 AM   #1
Trizon
Member
 
Registered: Apr 2005
Distribution: Source Mage GNU Linux
Posts: 35

Rep: Reputation: 15
eth0 and eth1 question


I'm using Fedora Core 4 and have a question about 2 network cards.

The network card which is eth1, is the one I would like to use automatically. Right now, I have to go into "Network" and "Activate" eth1 manually and it works fine.

I don't have a network cable plugged into eth0, because I don't want to use that card.

other info:
The connection I want to use is on my motherboard and right now is eth1.
The other nic is a card and right now is eth0.


How can I change this so it will automatically detect the right connection every time?
 
Old 07-05-2005, 02:04 PM   #2
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
Obvious simple solution is to remove the card you dont use.

Beyond that you have to edit certain network files, which can be messy.
 
Old 07-05-2005, 04:30 PM   #3
Trizon
Member
 
Registered: Apr 2005
Distribution: Source Mage GNU Linux
Posts: 35

Original Poster
Rep: Reputation: 15
Okay, I'll remove the card.
Boy, I never can get away with being lazy, heh.

Thanks for the response!
 
Old 07-05-2005, 08:41 PM   #4
bsmith121
Member
 
Registered: Aug 2003
Distribution: Fedora Core 6, Gentoo
Posts: 34

Rep: Reputation: 15
I use the 'system-config-network' program which gives you a nice GUI to do this. Just select your ethernet card and then click the big Edit button at the top. In the edit window, you should see "Activate device when computer starts". Just check or uncheck the box accordingly. Then hit OK and then File -> Save.

I know those aren't very good directions so let me know if you have any questions.
 
Old 07-07-2005, 05:46 PM   #5
ifoutch
LQ Newbie
 
Registered: Jul 2005
Location: Chicago
Distribution: SuSE , FC, Slackware, Solaris, RHES.
Posts: 1

Rep: Reputation: 0
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 & /etc/sysconfig/network-scripts/ifcfg-eth1, as root or better yet with sudo;

# Set the value for;
ONBOOT=no # For eth0
and
ONBOOT=yes # For eth1


An easy way to start and stop an interface, instead of going through the GUI. Open a terminal and do:
sudo /sbin/ifconfig eth0 down
or
sudo /sbin/ifconfig eth1 up
man ifconfig

I would suggest you take a peek at the following files. They all pertain to network configuration on your computer.

/etc/hosts
man hosts
/etc/resolv.conf
man 5 resovler
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1 # Might not exist if you only have one interface.

When using the GUI interface for changing network settings. Most of the time, these will be the effected files. Remember... as long as you have console access, don't be affraid to play around with the settings. If you break it, it can always be fixed. I recomend making backup copies of these files if you are going to edit them.

-- Ian
 
  


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
ppp0,eth0,eth1 question Digital_Err0r Linux - Networking 1 09-22-2005 12:41 PM
Newbie Question: Route all request coming from eth1 to ppp0/dsl0/eth0 hansschmucker SUSE / openSUSE 0 02-12-2005 10:38 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 03:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration