LinuxQuestions.org
Register a domain and help support LQ
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 09-25-2006, 06:28 PM   #1
snalion
LQ Newbie
 
Registered: Aug 2006
Posts: 11

Rep: Reputation: 0
Unhappy 4 network cards


Hello,

I'm running Slackware 10.2 with Kernel 2.4.31. I have 4 10/100 3Com network cards(3C905) installed on my box which are recognized fine by the kernel. I modified the rc.inet1.conf and gave each of them IP addresses, however only eth0 works. When I run ifconfig, I can see all 4 of them, but when I connect the cable to eth1 or eth2 or eth3, none of them work. When I connect eth0, it works fine, I can ping websites, etc, but not on the others. The route command gives me the same information for all 4 of them, but only gives gateway information for eth0. Can someone help em with this please? Any comments or advice is appreciated.
Thank you
 
Old 09-25-2006, 06:45 PM   #2
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
Out of curiosity, have you done the following?
Code:
ifconfig eth1 up
ifconfig eth2 up
etc...
 
Old 09-25-2006, 08:49 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by snalion
Hello,

I'm running Slackware 10.2 with Kernel 2.4.31. I have 4 10/100 3Com network cards(3C905) installed on my box which are recognized fine by the kernel. I modified the rc.inet1.conf and gave each of them IP addresses, however only eth0 works. When I run ifconfig, I can see all 4 of them, but when I connect the cable to eth1 or eth2 or eth3, none of them work. When I connect eth0, it works fine, I can ping websites, etc, but not on the others. The route command gives me the same information for all 4 of them, but only gives gateway information for eth0. Can someone help em with this please? Any comments or advice is appreciated.
Thank you
Can you please also give a description of the networks set-up, and
maybe the content of rc.inet1.conf plus the output of route?


Cheers,
Tink
 
Old 09-26-2006, 10:04 AM   #4
snalion
LQ Newbie
 
Registered: Aug 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you for your replies.
Chromezero: Yes I tried that, but nothing happens

Tinkster: Here is the information from the the /etc/rc.d/rc.inet1.conf file
Code:
# /etc/rc.d/rc.inet1.conf

# Config information for eth0:
IPADDR[0]="192.168.1.62"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.1.64"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]="192.168.1.66"
NETMASK[2]="255.255.255.0"
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

IPADDR[3]="192.168.1.68"
NETMASK[3]="255.255.255.0"
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"

DEBUG_ETH_UP="no"
The ROUTE is:

Code:
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth2
localnet * 255.255.255.0 U 0 0 0 eth3
loopback * 255.0.0.0     U 0 0 0 lo
default  192.168.137.1 0.0.0.0 UG 1 0 eth0
Do I need to add the gateway information for all "eths"? Hope this helps. Thanks again!
 
Old 09-27-2006, 03:55 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Errh. All interfaces are on the same subnet, have the same gateway ...
what's the point of the exercise?


Cheers,
Tink
 
Old 09-27-2006, 06:21 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You're right, Tinkster.
And I've seen plenty of posts dealing with the same issue (same subnet for multiple interfaces). The solution is to either use different subnets or to change the packet routing. Search the forums for details on the latter.

Last edited by timmeke; 09-27-2006 at 06:25 AM.
 
Old 09-27-2006, 06:44 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Tinkster
Errh. All interfaces are on the same subnet, have the same gateway ...
what's the point of the exercise?


Cheers,
Tink
Maybe secure http where every site needs it's own ip-address?
 
Old 09-27-2006, 02:15 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Wim Sturkenboom
Maybe secure http where every site needs it's own ip-address?
But then you'd want different subnet-masks?



Cheers,
Tink
 
Old 09-27-2006, 10:42 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Why? HTTPS only works properly with ip-based virtual hosting. So every virtual host must have it's own IP address. In my situation, my 4 websites (hosted on one server) run in the same (office) network. So they should have the same mask.

I'm definitely not an IP specialist, so please correct me if I'm wrong.

Last edited by Wim Sturkenboom; 09-28-2006 at 12:59 AM.
 
  


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
Network Problem with 2 network cards on the same subnet on Redhat seb.its Linux - Networking 6 12-24-2005 04:16 AM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 03:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 09:52 PM
Two network cards = network problem filch Linux - Networking 3 01-04-2005 03:06 AM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 04:26 PM


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