LinuxQuestions.org
Visit Jeremy's Blog.
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 05-12-2002, 12:00 PM   #1
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Rep: Reputation: 15
How do you network 2 pcs with 1 ADSL connection?


Hi,

My wife uses one PC with Win98/NT and I use now a seperate PC with just Linux.

We both use the computers frequently and have only one ADSL connection but what do we need to get the two connected onto the same ADSL line.

Someone told me to buy an Intel InBusiness 5 port Hub and that would solve the problem and after asking the salesman and then taking it home, setting it up and having only one light come on which is the connection from my Ethernet card to the Hub (I'm using my wife's PC) I still cannot connect to the Internet, I noticed from the very graphic setup process that it only mentions file sharing and printer sharing but no mention of Internet connection.

Have I been sold the wrong Network Hub?

And if so what should I buy?
 
Old 05-12-2002, 12:39 PM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Thumbs up No sweat buddy ;)

Hi,

You can do this quite easily, just setup the ADSL device on the linux box, connect the linux and win boxes on a network and setup masqurading on the linux box. Then you setup windows networking to use your linux box as the default gateway and presto! Internet on both boxes.

If you dont understand what the hell I'm talking about, then try to answer the following...

What kind of ADSL device do you have and what country are you in?

Can you set it up on the linux box, and get internet traffic?

Have you connected both pc's to the hub and can ping the your pc's from each other?

If you can do all this, then all you need to do is type this line into a shell on the linux box...

ipchains -A forward -s xxx.xxx.xxx.xxx/0 -j MASQ

where xxx.xxx.xxx.xxx is the IP address of your windows machine.

you can inprove this line by researching masqurading but this will get you up and running.
 
Old 05-12-2002, 01:11 PM   #3
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
There are some nice tutorials for Internet connection sharing here:

http://www.practicallynetworked.com/sharing/

j.
 
Old 05-12-2002, 02:09 PM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
or you can try Firestarter from http://firestarter.sourceforge.net
This worked for me and a cable connection and a Win98 and an XP machine.
 
Old 05-12-2002, 07:57 PM   #5
rcgroups1
LQ Newbie
 
Registered: Apr 2002
Location: USA
Distribution: RedHat/Suse/Mandrake
Posts: 18

Rep: Reputation: 0
Easy way just buy 70 dollar linksys 5 port router which can connect directly to DSL ISP and run as DHCP also. You can connect 4 computers to internet and no need to keep all of them running just the one you need to work is enough.
 
Old 05-13-2002, 04:19 AM   #6
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks to all who have posted, it's all working and WOW!.

Thanks for the instructions, they looked difficult but after a careful read it seemed to make sense, again thanks for that.

Thanks for the info on the internet tutorials.

The firestarter is a pretty interesting read and will install and dive into that within the week.

Well the hub seems to be working fine and all are happy touch wood.

Again thanks to everyone who lent me their advice.

Regards
 
  


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
Installing SuSE 10.0 over the network with ADSL connection hardstyleFX SUSE / openSUSE 2 10-18-2005 03:40 PM
PF - design/configure firewall for network using ADSL connection -- please help me b:z *BSD 3 06-22-2005 12:27 AM
Setting up Suse9.1 to use ADSL connection, on my Windows network. andre_bergh Linux - Networking 4 03-23-2005 06:36 AM
ADSL Modem install and Network connection jimmymac49 Linux - Hardware 1 12-03-2004 03:30 AM
How do I configure my adsl connection for network install? subaruwrx Debian 2 11-20-2004 07:09 AM

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

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