LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-18-2004, 04:15 AM   #1
Paiway
LQ Newbie
 
Registered: Dec 2004
Location: Sweden
Distribution: Debian ' Sid' 2.6.9
Posts: 14

Rep: Reputation: 0
Sharing internet from Debian to WinXP?


Hi.

I have a slight problem. I live at a boarding school, and I'm going
home for the holidays. That means I'll be bringing home my computer,
and that's where the problems start. You see, my ISP only gives me one
IP, which is obviously not enough for both my computer and my
sister's. Back in the days when i used Windows XP, I solved
this problem by activating internet sharing on my computer and letting
my sister use me as a gateway. It worked fine, both of us could do what
we normally do on the Internet

However, since I now use Debian, I need to know how to do the same
with under Linux. Here's the network setup:
http://img143.exs.cx/img143/3264/layout4yg.png

Using my sister's computer to route the connection is not an
acceptable solution since she turns it off every night around 23:00.

How should i solve this? I have access to 3 NICs, my own and my
sister's computer, one cheapo ISP and copious amounts of cat 5e TP
cable.

Thank you for your time.

Last edited by Paiway; 12-18-2004 at 04:17 AM.
 
Old 12-18-2004, 03:05 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
This is the route I would recommend and use myself;

Install a firewall, nat and masquerading using this howto . You need to decide whether you are going to use dhcp or static addressing. In this case it is probably easier to use static addressing. Once you have the firewall setup and running then just tell the xp box that the gateway is the ip address of the ethernet card that it is connected to on the debian box. You only need to use a x-over cable to connect the two. The gateway for the debian box will the be the router address if its broadband.
Your /etc/network/interfaces will look something like this;

auto lo
iface lo inet loopback

# This entry was created during the Debian installation
# (network, broadcast and gateway are optional)

auto eth1
iface eth1 inet static
address 10.0.0.10
netmask 255.0.0.0
gateway 10.0.0.2

auto eth0
iface eth0 inet static

address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.5

Where, looking at the debian box 10.0.0.10 is the eth1 connected to the router, ip 10.0.0.2 is the router and 192.168.0.5 is eth0 connected to the xp box. Note that the connections must have different subnets.
 
Old 05-02-2008, 02:30 PM   #3
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Hello,
Thank you for this explanation. I tried it out, but now I still have a problem with connecting to the internet

I still have a problem though: Windows is still reporting "limited or no connectivity" I post below my copy of /etc/network/interfaces. Does anyone know what might be wrong?

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Last edited by wilsonsamm; 05-02-2008 at 02:35 PM.
 
Old 05-02-2008, 02:38 PM   #4
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Duh! I should have saved the file, of course. *blushes*
 
  


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
Internet sharing Fedora3->WINXP Freekas Linux - Networking 2 01-16-2005 04:38 AM
need help on FC3 WinXP file sharing. Internet connection OK bestbidder1 Linux - Networking 1 01-15-2005 03:51 AM
Internet connection sharing - WinXP + Knoppix + Gentoo Mireno Linux - Networking 1 12-17-2004 02:56 PM
internet sharing with debian. Help please. gonus Debian 6 09-24-2004 06:40 PM
Sharing Internet with a WinXP Box sovietpower Linux - Networking 2 11-13-2003 08:19 PM

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

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