LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2004, 08:31 PM   #1
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Rep: Reputation: 0
Exclamation Internet LAN from Linux to WinXP


Hi. I would like to know if it is possible to configure an Internet LAN between 2 computer, using in one Linux and on the other WinXP. If so, then how do I configure it so that the computer that uses Linux is the "main" computer that "provides" internet to the computer using WinXP. Thanks.
 
Old 07-17-2004, 09:53 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
there are many ways of doing it. they all involve configureing iptables.
but the easyest way in my opinion is to install a program called 'firestarter'

its a graphical program to setup your firewall, but it can also be used to share your internet connection.

however you do need 2 seperate network devices on your linux box. you cannot use the same network card to connect to your internet, AND windows pc.
 
Old 07-17-2004, 10:00 PM   #3
linuxnotwindows
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Hi I have been using SuSE 9.1 for about a week but I successfully set up the following. SuSE 9.1 and XP Pro each on their own box, LAN through an ADSL router.

If you don't have a router you would need a crossover cable between the two boxes and have Linux with a straight through cable to the internet.

If using a router
Linux -> "straight through cable" to modem/router } modem/router
XP-> "straight through cable" to modem/router } connects to the internet

If NOT using a router
Linux -> "cross over cable" <- XP
Linux -> "straight through cable" to modem, which connects to the internet
modem/router

Now to setting up the LAN.

In Linux you need to set up Samba client and Server. Make sure you enable netbois. Also turn OFF your Linux firewall. (You can reactivate it after the LAN works. Having it off during set up removes it from being a possible problem.)

On XP right click the folder you want to share. Select properties and go from there. Also make sure that XP firewall is off on your LAN connection.

What Linux are you using? What is your internet connection?

Edited.

Last edited by linuxnotwindows; 07-17-2004 at 11:39 PM.
 
Old 07-17-2004, 11:20 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i dont think this guy has a router.. which is probably why he wants to setup linux to share the internet.
 
Old 07-18-2004, 09:36 AM   #5
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Original Poster
Rep: Reputation: 0
I'm not actually using Linux right now. But I want to use it, that's why I need to know how to configure my internet connection, so that my other computer can access the internet at the same time as I do. But in order to get the LAN working properly I need to know exactly what to do. And no, I don't have a router, it's a simple Ethernet connection using a crossover cable.
Thanks for all the help.
P.S.: Where can I get the necessary software (samba) to get it working?
 
Old 07-18-2004, 09:47 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
how will you linux machine be connected to the internet ?

dialup ?
USB ?
or by a second network card ?

if you intend to use dialup, make sure you have a hardware modem. not a windows modem. in general, internal dialup modems tend not to be compatable with linux.

Last edited by qwijibow; 07-18-2004 at 09:48 AM.
 
Old 07-18-2004, 09:51 AM   #7
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Original Poster
Rep: Reputation: 0
My Internet connection is through ADSL, using a USB Modem. To make the LAN I'm using an Ethernet device in both computers (one in each) and a crossover cable.
 
Old 07-18-2004, 11:40 AM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
ok, great.
then you have all the hardware you need.

go install a linux distro.
 
Old 07-18-2004, 12:13 PM   #9
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Original Poster
Rep: Reputation: 0
Just for me to be sure of what to do... Basically all I have to do is install "firestarter" and configure it? But what about the problem that commonly happens when Linux recognizes the Windows machine but the the Win Machine doesn't recognize de Linux machine?
 
Old 07-18-2004, 12:44 PM   #10
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Quote:
Just for me to be sure of what to do... Basically all I have to do is install "firestarter" and configure it? But what about the problem that commonly happens when Linux recognizes the Windows machine but the the Win Machine doesn't recognize de Linux machine?
all depends on what distro you use.
each distro has different config tools.
but firestarter was what i used on my fedora core 2 box.

what do you mean is windows doesnt reconise the linux machine ?

my Internet servie provider runs UNIX. and my windows XP box doesnt know its a unix machine, but that doesnt effect network communication.

the operating system is not important for internet shareing when linux is the main internet machine.
 
Old 07-20-2004, 10:02 AM   #11
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Original Poster
Rep: Reputation: 0
I have not yet sollutioned my problem with the LAN. Has I told before, I'm a newbie and I was woundering if you or anyone could give me step-by-step info on how to configure the LAN, baring in mind that the Linux machine HAS to provide internet to the WinXP machine. I'm using Mandrake 10.
Thanks.

Last edited by eurico_r; 07-20-2004 at 10:07 AM.
 
Old 07-20-2004, 10:48 AM   #12
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
so whats the problem ?

can the linux machine access the internet ?
if yes, then connect the linux machine to windowsXP machine with crossover network cable
follow the instructions for your distro to enable ip_forwarding.
and setup linux ethernet network cards address to STATIC 192.168.1.1
setup the windowsXP ethernet address to STATIC 192.168.1.2
and setup windows XP to use 192.168.1.1 as an internet gateway .

done, simple as that.
 
Old 07-24-2004, 07:16 AM   #13
eurico_r
LQ Newbie
 
Registered: Jul 2004
Location: Portugal - Matosinhos
Posts: 6

Original Poster
Rep: Reputation: 0
One thing I haven't mencioned is that the WinXP is using a on-board ethernet device. Is it possible that the LAN might not work because of it? I have tryed everything you've said, yet with no success.
Thanks
 
  


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
How to LAN Ethernet FC3 + WinXP to Internet tktim Linux - Networking 3 01-21-2005 04:29 AM
using dial-up internet between linux/winXp on same hard drive bullnuts Linux - Newbie 2 09-18-2004 07:35 PM
How to setup LINUX to share Internet for winxp preswang Linux - General 1 11-04-2003 08:38 AM
LAN and no Linux Internet Connection dnoack Linux - Networking 1 07-08-2003 11:05 PM
Internet, WinXP-Server Linux-Client LoneWolf58 Linux - Networking 4 09-12-2002 09:11 AM


All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration