LinuxQuestions.org
Help answer threads with 0 replies.
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 02-13-2005, 08:59 PM   #1
Travis Huey
LQ Newbie
 
Registered: Feb 2005
Posts: 12

Rep: Reputation: 0
Sharing internet between WIN XP and REDHAT


Alright, i just got linux on my comp a few days ago, trying to get a Internet connection on it. before i had these 2 comps both win XP, let me lay out how i have em set up.

Comp 1 ( XP ) has 2 NIC cards (linksys LNE100TX ver.5.1 )
one of them is hooked up to the DSL modem

Comp 2 ( red hat 9.0 ) has 1 NIC card ( same kind ) and is connected
to Comp 1 with a cross over cable.

DSL modem, speedstreem, its all hardware, so everyting is run inside. has a Ethernet port, and a USB port. it can act as a router.

Problems, ive walked threw a few guides alrdy, i can now ping both net cards. have the IP's netmasks, DNS's all set up and working fine. But i cant seem to relay internet threw the netcard.

Im starting to think it cant be done, and i have to use the modems USB port to throw internet at my Linux box, or buy a router ( prolly the easiest solution, but im poor ).

Also on the subject of useing the USB from the router on there, with 9.0 i cant see to get redhat to think i can use USB for a DSL connection, or any network device for that matter.

Any Tips or help would be nice.
 
Old 02-13-2005, 09:24 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
post the contents of the file

/etc/sysconfig/network-scripts/ifcfg-eth0

and

/etc/resolv.conf

and the IP of ur win machine

also have u enabled internet sharing from ur win machine

regards
 
Old 02-13-2005, 09:32 PM   #3
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
The 'better' way to do it would be have the linux box share the connection if possible...

The 'best' way is to have another smoothwall router box IMO. (ie pentium 120, etc)
 
Old 02-13-2005, 09:33 PM   #4
Travis Huey
LQ Newbie
 
Registered: Feb 2005
Posts: 12

Original Poster
Rep: Reputation: 0
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
Device=eth0
HWADDR=00:04:5a:83:le:13
BOOTRPOTO=none
NETMASK=255.255.255.0
ONBOOT=yes
IPADDR=192.168.10.2
NETWORK-192.168.10.0
BROADCAST=192.168.10.255


Nameserver 166.102.165.13
nameserver 166.102.165.11


Win machine IP = 192.168.10.1 ( thats the netcard connected to it and the linux machine at lest )

and yes, internet sharing is on



I dont want to make the linux box the reciver of internet, cuz its extreamly old and slow so i dont want it to slow down this ( win box ) because of that, and i dont want this comp useing the USB port, same reasons.

Last edited by Travis Huey; 02-13-2005 at 09:35 PM.
 
Old 02-13-2005, 09:42 PM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I think you really need to tell us more about the hardware, what the machines actually are and the actual OS version, etc...

BTW, boxes that really are old and slow make excellent gateways - like pentium 120's and so forth, even 486's - if you just want a gateway firewall box.
 
Old 02-13-2005, 09:46 PM   #6
Travis Huey
LQ Newbie
 
Registered: Feb 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Win box, 1.6ghz intel, 512 ram, Windows XP home SP2
Linux box, 700mhz AMD-K62 126 ram Linux Redhat 9.0 ( no updates, what ever is the latest ISO's they have on the FTP at redhat.com )

purpose isnt a firewall box or anyting, i just want a secondary computer that runs linux and has internet, so i can learn linux some more

Last edited by Travis Huey; 02-13-2005 at 09:47 PM.
 
Old 02-13-2005, 09:58 PM   #7
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Just offering the best advice I have.

A 700mhz machine, even a K6, is not an old slow machine for linux and it would not even begin to slow the internet connection to a win box. It would handle it much more reliably and safely and double as a firewall. It is the better solution to use it to share. Also a good learning experiment. Linux is MADE for this sort of thing from the core up, unlike windows.

A current distro is always a good idea. MDK10.1, FC3, etc.

The best option is to find and old pentium (usually for free) and build a router box with smoothwall (35meg free download) and it does DHCP and firewall and everything and makes it real easy to share a net comection with multiple machines and it makes a nice safe firewall as well - and solves all the IP and sharing hassles.

We asume the K6 is overclocked
 
Old 02-13-2005, 10:03 PM   #8
Travis Huey
LQ Newbie
 
Registered: Feb 2005
Posts: 12

Original Poster
Rep: Reputation: 0
thats what ill prolly do after i get another computer, but for now i kinda need both of these up and running, with internet.
 
Old 02-13-2005, 10:10 PM   #9
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Well, should be doable. I don't use Windows net sharing tho, so no help there... If they are networked and pinging then it's just the win net sharing you need to configure correctly...
 
Old 02-14-2005, 12:10 AM   #10
Travis Huey
LQ Newbie
 
Registered: Feb 2005
Posts: 12

Original Poster
Rep: Reputation: 0
well i guess it looks like i got a Windows problem now heh, anyone good with XP's network?

I guess if you guys think having a slow ass comp wont slow down my internet i could make it the primary computer.... but i do alot of heavy bandwith things on the windows comp
 
Old 02-14-2005, 01:11 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
run "setup" on ur RH 9.0 BOX

go to networking

set ur ip addresses and netwmask and default gateway as IP of windows machine and DNS server

after that exit from there

and

service network restart

and see if it works

regards
 
  


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 sharing, linux client, win server... huzzzo Linux - Networking 3 08-21-2005 02:30 PM
internet sharing from slack 10.0 -> win xp zobra Linux - Networking 4 11-20-2004 12:17 AM
Newbie- Redhat 9.0 sharing internet with 2 WIN XPpro Julian_Thong Linux - Networking 7 08-17-2004 06:20 AM
Win Me - RedHat 9 - Net working & Internet sharing Iyan Linux - Networking 2 09-23-2003 10:14 PM
Sharing Internet Connection with Win Me iaypaa Linux - Networking 8 10-13-2002 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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