Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i have the following scenario.

Two laptops are connected via a router through the Ethernet ports. These two computers need to be able to communicate together. One computer also needs to access the internet through a different adapter (i.e. we will taking these two laptops two various sites where by the most common type of internet access will be wireless).In isolation all of the various adapters work fine (i.e. the internal network works fine, and the wireless connects to the internet). However,we try to turn on all of the adapters at the same time,the following occurs:

  • If we bridge the two network connections together on the "Server" -The internet connection doesn't work through the wireless
  • If we don't bridge the connections
    • The internet connections don't work

It seems like http traffic is trying to be sent through the Ethernet adapter (which of course is not connected to an internet connection).

How can we solve this?

share|improve this question
    
What networks are you using on the different adaptors? –  Jason Tan May 10 '10 at 13:50

2 Answers 2

I suspect you need to put both laptops on one network, e.g. 192.168.0.0/24 this must be a different network to what the internet connection is provided through.

Then put the internet connected laptop on it's network, which I assume will be defined by the internet connection. Let's assume its 10.1.1.0/24

Then you need to set the default route on the internet connected laptop to use the internet network's gateway. I.e. the internet connected laptop will need to use 10.1.1.254 as it's default route.

You can do this with the route command, though I am not familiar with the windows version of it, I know it exists and I am pretty sure you can jigger the routing table with it.

Be aware that this will not allow the non internet connected laptop to get out onto the internet, but from how I read your question, that is not a requirement.

share|improve this answer

You haven't said what O/S you're using, but what you need is the equivalent of "internet connection sharing", which certainly used to be present in MS operating systems, and is also available on OSX.

Turn this on on the system which has dual connections, and then it will act like a DHCP server and NATing router for the second system. That second system should be connected to the first with an ethernet switch or if there's no other device just a crossover cable - no router required.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.