LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-03-2011, 05:44 PM   #1
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Rep: Reputation: 0
configuration of a dual LAN scheme


Hi,

I have a linux box called worx. Worx has two LAN ports (built in to the mobo). LAN1 (eth0) connects to the network. LAN2 (eth1) connects to MIC, a microscope controller. MIC never accesses the network. I need to be able to use worx to talk to MIC but I don't have my setup correct. The problem I have started via a corrupted filesystem that resulted in a lot of broken packages, including the LAN adapter drivers. I reinstalled the LAN drivers and all the networking utilities. Both adapters can now be used to access the interent if configured with DHCP so there's no issue with the hardware. I need worx to be able to connect to the network on LAN1 and the MIC on LAN2. The MIC is an XP machine that is configured with a static IP (159.159.159.2 in this case). I feel like I should be able to do this myself but for some reason nothing I've tried has worked. I'm sure it's something silly I've missed. Does anyone understand the setup and have any suggestions?

------LAN1 (DHCP) -> internet
-----/
[worx]
-----\
------LAN2 (static IP) -> MIC -> microscope
 
Old 02-05-2011, 05:46 AM   #2
OdinnBurkni
Member
 
Registered: Feb 2007
Location: Iceland
Distribution: Fedora 14, CentOS, FreeNAS
Posts: 127

Rep: Reputation: 20
Dual LAN

Hi.
I guess you have set static IP on LAN2 in the same subnet as the XP machine, i.e. 159.159.159.3 or something like that? And make sure the subnet mask is the same on both machines. Third point is, how do you connect the Worx machine to the MIC? Straight cable between them or through a switch? If you connect them straight without a switch, the cable has to be a crossover cable.
Hope this gives you some clue.
 
Old 02-05-2011, 10:53 AM   #3
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
First, you really should restart by reinstalling Worx. A corrupted filesystem may cause a lot of grief down the stream -- I'm speaking from long experience here --, so the sooner you do the reinstall, the easier and better it is in the long run.

Second, like OdinnBurkni said, if you use a single cable between Worx and MIC, it has to be a patch or crossover ethernet cable (as opposed to a normal one). You can check by looking at the wires in the connectors side-by-side: a patch cable is ABCD-CBAD, where normal is just ABCD-ABCD. (Here are some nice images.)

Third, again like OdinnBurkni said, you need to set up a static IP on the same subnet as MIC on the the second interface on Worx. The details differ a bit between Linux distributions, but you did not state which one you use. The one thing that bites people is the routing table. When setup correctly, the networking scripts will automatically set up correct routes for the interface. Since distributions differ, some people tend to just "hack it" to work rather than learn what the preferred configuration method is for that distribution -- and the routes don't get set properly. As you probably know very well, route -n will show the routing configuration.

It is very common in University labs to have a "black box" instrumentation machines connected this way. You should be able to get it working very well.

Hope this helps,
Nominal Animal

Last edited by Nominal Animal; 03-21-2011 at 07:20 AM.
 
  


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
What is the best partitioning scheme for a multi-disks HTPC or HDMI configuration? cippalippa Linux - Hardware 6 10-22-2009 06:59 AM
Partition Scheme for dual booting winXP and linux hungrigerhaifisch Linux - General 2 03-27-2008 11:33 AM
Looking For Specific Dual-Boot Scheme JediDrunk Linux - General 6 09-25-2006 03:56 AM
LAN-Internet Storage Scheme Dark_Helmet Linux - Networking 2 06-05-2006 11:19 PM
XP/LINUX dual boot partition scheme? climater Linux - Newbie 7 07-03-2004 05:00 PM

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

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