LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-12-2002, 12:23 PM   #1
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Rep: Reputation: 30
2 network cards on same subnet. Is this ok?


eth0=192.168.3.2
eth1=192.168.3.3

Does this pose a problem?

I tried changing eth1 to 10.0.0.2 and then i couldnt access the box.
 
Old 01-12-2002, 12:27 PM   #2
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Well it is posing some type of problem.

It takes about 15mins after the server is restarted before ssh is allowed on 192.168.3.2. ssh is allowed right away on 192.168.3.3.
pop3 also doesnt work. Its like after 5 mins everything kicks in. So i disabled the nic and restarted server. Everything is beautiful.
So what can i change it to to be correct. Id really like it to be a 10.0.0.0 network. I think Raz said it should be, but then if I change it, no access.
Has anyone ever had this issue?
Thanks
 
Old 01-12-2002, 02:42 PM   #3
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Can someone give me an example of two nic ip addresses that are on the same box?
 
Old 01-12-2002, 05:41 PM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
It doesn't matter if you use the 10.x.x.x or 192.168.x.x range of IP addresses, both are private, non-routeable ranges.

The problem is that 2 NIC in the same machine really don't like to live on the same subnet. You can find out more about the issues by doing a Google search on the phrase "two NICs on the same subnet". I think the problem has also been addressed here; use the search function to check the archives.

Could you post the output of ifconfig just for grins?
 
Old 01-12-2002, 06:54 PM   #5
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
yeah, it's not good practise to do what you're doing, and so it's not allowed under un*x, or at least linux. it's inconsistent with standard ethernet architecture. you can either run them on diffferennt sub nets and perhaps find out about kernel bridging, or... erm.. get a hub. OR install a token ring netwrok.. ouch.

windows lets you get away with ti... but it shouldn't, and in this kind situation, it's really a case of having to bute the bullet and accept that it's a bad thing to do, even though your situation would benefit from it.
 
Old 01-14-2002, 09:10 AM   #6
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Hi,
This is what I have now
eth0=192.168.3.2
eth1=192.168.1.2

and things work now.
THanks for your explanation.

I guess they also have to be on the same mask. I tried changing the card to 10.0.0.x(255.0.0.0) and things didnt work. But it could also be that the switch im using is for 10.0.0.x and 192.168.x.x. traffic.

Thanks again.
 
  


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 subnet / bit varun_saa Mandriva 4 09-11-2005 01:51 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
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 05:27 PM
Subnet changed = Network Unreachable scorchen Linux - Networking 3 09-18-2003 05:13 PM

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

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