LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-17-2005, 10:30 PM   #1
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Sharing my Internet Connection from Ubuntu to Windows (XP & 98SE)


I am trying to get my Internet to work from 2 Windows (98 & XP) machines that are networked to a machine running Ubuntu (Hedgehog) that is connected to the Internet.

If that is unclear, here is a diagram:

Code:
Internet --> Cable Modem --> Ubuntu --> Switch |
                                               v
                                   Win98   <---+---> WinXP
The Ubuntu system has 2 Ethernet cards, eth0 (local network) and eth1 (internet).

It works under Windows XP (dual boot on the Ubuntu), but I can't figure out how to get it to work under Linux. In Windows, it was acting as a DHCP server to the XP and 98 machines. The Internet works in Linux, but only on the Ubuntu machine, and I want it to work from the other 2 machines.

I'm fairly new to Linux, but I'm willing and have some knowledge of it's workings.

Thanks in advance.
 
Old 05-18-2005, 07:03 AM   #2
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
well, dhcp and sharing an internet connection are two different things. on the ubuntu box, you will have to setup a proxy server and then point the 2 windows boxes to that server. that should be enought to get it to work. either that or move your switch (which might be a router too??) in front of your ubuntu box and have all three of your machines plug into that and they will all have an internet connection on their own. if the switch is not a router, you can pick one up for not a whole lot of money.

i know this isnt an answer but i hope it helps
 
Old 05-18-2005, 12:26 PM   #3
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
On Windows, when you do the Home Network Wizard (or whatever it is called), it automatically assigns IP addresses for the other computers on the network using DHCP, and sets up Internet Connection Sharing and File Sharing, but I suppose I could do without the DHCP as long as I could get it to work another way.

Also, I forgot to say that my switch is not also a router. I have a router, but I don't use it because my ISP only lets me use the MAC address of my Ethernet card in my Ubuntu box -- I suppose I could fake the MAC addresses, but I'd have to figure out how to change it in my router (Linksys, I don't know the model) and that is another issue entirely.

I don't know how to set up a proxy server like jsmarshall said, but if that would help I'd like to know how.
 
Old 05-19-2005, 05:25 AM   #4
xukosky
Member
 
Registered: Apr 2005
Distribution: Becoming Sid
Posts: 142

Rep: Reputation: 15
Here is all you need to know about dns and internet sharing in linux:

For dns:
http://www.faqs.org/docs/Linux-HOWTO/DNS-HOWTO.html
For internet sharing:
http://www.ibiblio.org/pub/Linux/doc...ade-HOWTO.html

If you don't have enough time for reading or just want to be able to do it in an easier way like in windows then let firestarter make the job (both jobs) for you:
http://www.fs-security.com/

If you also need file sharing then you'll also need samba:
http://us3.samba.org/samba/
 
Old 05-19-2005, 06:05 PM   #5
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for all your help guys, I never actually figured this out but I got my router to work with that MAC address clone... now I can get to work on samba.

You guys rock.

-eminence
 
  


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
firestarter & internet connection sharing imagineaxion Debian 2 02-11-2005 09:23 AM
Sharing internet connection with windows Kontrau Linux - Networking 2 05-02-2004 07:10 PM
Mandrake 9.2 data sharing with Windows 98SE allardj Linux - Newbie 3 02-24-2004 04:35 PM
Internet Connection Sharing with a Windows PC Chryzmo Linux - Networking 22 09-26-2003 12:10 PM
Windows internet connection sharing Config Linux - Networking 3 02-22-2002 12:17 AM


All times are GMT -5. The time now is 08:51 AM.

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