LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-24-2006, 05:14 PM   #1
tsunamikitsune
Member
 
Registered: Jun 2006
Location: Dubuque, Iowa
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
Internet connection sharing between two Ubuntu computers


I'm still fairly new to Linux, so I don't quite know how to share an internet connection. Here's what my set up looks like:

Cable Modem -> ethernet cable -> Computer 1 (Network Card 1)
Computer 1 (Network Card 2) -> crossover ethernet cable -> Computer 2

In Windows XP, I could connect the crossover cable to another computer running XP and it usually had working internet. Both computers are running Ubuntu, so it shouldn't be too hard to share a connection, right? Like I said, I don't know too much about Linux, so please give me some easy to understand instructions.
 
Old 06-25-2006, 06:28 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Primarily you need ip-masquerading and then you need to forward requests from comp 1 to 2. This is covered in this article.
The network part of this is that the gateway for comp 2 will be the ip address of network card 2 in comp 1 if you are using static addressing. The network settings are in /etc/network/interfaces.
 
Old 06-25-2006, 04:49 PM   #3
tsunamikitsune
Member
 
Registered: Jun 2006
Location: Dubuque, Iowa
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
I have a dynamic ip address, and on Windows I used no-ip to fix that problem. I installed the no-ip package, but I don't know how to set it up or run it. Any experience with this?
 
Old 06-26-2006, 12:04 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by tsunamikitsune
I have a dynamic ip address, and on Windows I used no-ip to fix that problem. I installed the no-ip package, but I don't know how to set it up or run it. Any experience with this?
Reduce the complications by using static addressing.
The dynamic address on the wan (internet) has no bearing on the lan as they are separate networks. The cable modem will pick-up the lease on the wan and then handle the routing to the lan. The key here is not to get confused with addresses and boxes. The ethernet connection to the modem can use dynamic addressing to pick-up an address from the modem. The lan needs to be on a different subnet. eg. if the modem is issuing leases in the 192.168.1.X range then use addresses in the 192.168.0.X range for the lan.
 
  


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
Internet connection sharing between Ubuntu and Windows 98SE tsunamikitsune Linux - Networking 2 06-23-2006 10:50 AM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Sharing my Internet Connection from Ubuntu to Windows (XP & 98SE) eminence Linux - Networking 4 05-19-2005 06:05 PM
2x Computers with Slackware 9.1 NFS/Internet PPPD sharing jimdaworm Linux - Networking 2 11-22-2003 10:32 AM
internet connection sharing with two red hat computers. brucedjones Linux - Networking 32 08-18-2003 03:12 PM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration