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 Shetty 17 months ago
What is the difference between Ethernet and Internet?
by Ari Lamstein 6 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 new laptop with a bigger screen. However, I think that MacBook Pros are...
by ibanga007 20 months ago
Here are your instructions from the website below.Forgotten your iPhone Passcode?If you have forgotten your iPhone's Passcode you will need to restore your phone via iTunes.But first you have to put your phone into the restore mode which is a slightly fiddly process.Plug your iPhone into your PC or...
by Earl S. Wynn 8 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 Paul Edmondson 3 years ago
Service for getting media off old computerI have some old laptops with pictures of my kids. Is there a service that will get the media off of them for me? I really don't want to fiddle with old computers.
by juniorsbook 8 years ago
Which computer operating system has a penguin as its logo?
Copyright © 2019 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.
|HubPages Device ID||This is used to identify particular browsers or devices when the access the service, and is used for security reasons.|
|Login||This is necessary to sign in to the HubPages Service.|
|HubPages Traffic Pixel||This is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.|
|Remarketing Pixels||We may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.|
|Conversion Tracking Pixels||We may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.|