how to connect two linux machines using linux to share internet?
I'm not going to step by step this, but basically it's like this...
One computer, we'll Call Computer A, has 2 ethernet cards, and another Computer, Computer B, has only one ethernet card.
If you don't have a hub, then you'll need to create an ethernet cross-over cable, and if you're not certain how to do that, then read this:
In a generic way you want your cable to be:
White-Orange - pin1
Orange - pin 2
White-Green -pin 3
Green - pin 6
(this is the normal ethernet side)
White-Green -pin 1
Green - pin 2
White-Orange - pin3
Orange - pin 6
(crossed - side)
If you're not making the cable yourself, then buy an Ethernet Crossover Cable.
Then you will connect the two together, giving B an IP that you define, and then the ethernet card you connect to B and IP that you define to be the other side.
Then route B to A by defining the Gateway to be A. Set up A's other ethernet interface to connect to the world as normal (DHCP or whatever) and, depending on the version of Linux you have, you may need to route the network from B to A on the A box.
But really... if you have a single internet connection, and you can afford to just buy a cheap switch for like $30, then do that and save yourself a shit ton of hassle. Plug both devices to your switch, and then let it take care of all the local stuff.
If you're using dial-up, and you only have modems... everything is different. It really sounds to me like you need to put a lot more detail in your question before someone technically adept can actually answer your question.
That's just me, though.
by Shwetha Shetty3 months ago
What is the difference between Ethernet and Internet?
by Ari Lamstein5 years ago
How to get a good laptop that runs Linux?I currently have a 3 year old entry-level MacBook. I have started using it to VNC into my work computer, but the small monitor makes it a pain. I would like to buy a...
by Earl S. Wynn7 years ago
When I take my computer out of hibernation mode, sometimes it can take up to ten minutes for it...to connect to the internet. Is there a way to speed this up?
by juniorsbook6 years ago
Which computer operating system has a penguin as its logo?
by edu20115 years ago
Which Operating System used in your Computer?
by PingThis3 years ago
Which do you prefer? Linux, windows, or Mac os? Why?
Copyright © 2018 HubPages Inc. and respective owners.
Other product and company names shown may be trademarks of their respective owners.
HubPages® is a registered Service Mark of HubPages, Inc.
HubPages and Hubbers (authors) may earn revenue on this page based on affiliate relationships and advertisements with partners including Amazon, Google, and others.