LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2001, 08:32 PM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30

Hi all,

I have 2 ethernet cards that are identical on my redhat 6.2 box. eth0 is connected to a router and it works fine. How do I get linux to:

1. see my second card (eth1) on boot up?
2. see if the second one works ok?

I can see the eth0 and eth1 in /etc/conf.modules, but not in /etc/sysconfig/network-scripts/ directory. All that is here is ifcfg-eth0.

Thanks.

Jon
 
Old 05-25-2001, 08:48 PM   #2
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
ok, I setup eth1 in linuxconf and gace it a different IP address from eth0. I then pinged eth1's IP address and it worked. I then pinged eth0's IP address and it too worked. Does this mean that they are both configured properly? If so, why don't I see eth1 loaded on boot up like I do eth0?

Thanks,

Jon
 
Old 05-25-2001, 10:10 PM   #3
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Rep: Reputation: 15
Quote:
Originally posted by jonfa
ok, I setup eth1 in linuxconf and gace it a different IP address from eth0. I then pinged eth1's IP address and it worked. I then pinged eth0's IP address and it too worked. Does this mean that they are both configured properly? If so, why don't I see eth1 loaded on boot up like I do eth0?

Hmm... I configured them using Linuxconf the same way...
I tested mine with ping eth0 and ping eth1, you could also try:

ping eth0 eth1 (which tells ping to use eth1 as a 'gateway' for the ping to eth0) and
ping eth1 eth0 (which,would do the reverse of the other ping)

If those all check out, then you should be ok. The only other checks/pings to do would be to ping out to machines on the network(s) connected to those NICs.

HTH,

George

P.S. I can't get at my machine that has two NICs right now, but when I can I'll post what my sysconfig directory looks like...

 
Old 05-25-2001, 10:23 PM   #4
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
Hey,

I managed to get eth0 and eth1 to show on booy up. I can ping ok using both of them. However, if I say
"ping eth0 eth1" I get a "unknown host eth0" response.

Jon
 
Old 05-25-2001, 10:31 PM   #5
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
never mind my last post. Everything is ok.
i realized i neede the IP numbers and not the literal eth#'s.
thanks.
 
Old 05-27-2001, 01:30 PM   #6
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Rep: Reputation: 15
Quote:
Originally posted by jonfa
never mind my last post. Everything is ok.

i realized i neede the IP numbers and not the literal eth#'s.

thanks.
. Glad you got everything working... Yeah after reading back over my post I thought I should have mentioned that you wanted to use the IPs associated with the ethx instead of the device name... Oh well, maybe next time...

Glad I could help and enjoy,
 
Old 11-10-2003, 01:05 PM   #7
smite
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Question another similar question

if i have a computer running linux with 2 ethernet cards, and a seperate IP for each, how does that work with web hosting? if i want to add a site, do i need to add an entry for both ifcfg-eth0:x and ifcfg-eth1:x in order for fail-over to occur if one of the ethernet cards were to die?

has anybody messed around with this?

thanks smart people,
matt
 
Old 11-10-2003, 04:06 PM   #8
inode100
Member
 
Registered: Oct 2003
Location: London - England, UK
Posts: 63

Rep: Reputation: 15
I dont know exactly how to do this in Linux, but i expect that the principle is the same as as with Unix. Basically i think you need some software that allows for the failover.. how this works is that you have an IP associated with each ethx as usual, but have a virtual floating IP address that will "float" across to eth2 from eth1 if eth1 was to break. What the software does is effectively monitor the NIC's and provides the ability to have the virtual IP. Your webserver, eg Apache will use the virtual IP and will think it is just like any other IP. There are a few different versions of this basic idea in Unix world.. i'm betting same/similar thing exists in Linux world... best to have a google...eg, i found this on my first search "IP multipathing on Linux"

http://lists.linux-ha.org/pipermail/...ay/004753.html

Let me know how you get on...

Inode
 
  


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
Two ethernet cards Scorper Linux - Hardware 1 06-05-2005 07:38 AM
Two Ethernet Cards webwolf70 Linux - Networking 9 04-15-2005 12:20 PM
using 2 ethernet cards one Tx and one Rx kayser Linux - Networking 11 05-03-2004 02:03 PM
2 Ethernet Cards matt80 Linux - Networking 14 12-01-2003 03:19 PM
Ethernet Cards and Sound Cards SchizoIV Linux - Newbie 2 07-05-2002 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:35 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