LinuxQuestions.org
Help answer threads with 0 replies.
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-07-2003, 02:24 PM   #1
silverstormer
LQ Newbie
 
Registered: May 2003
Posts: 3

Rep: Reputation: 0
Question RedHat9 sharing internet connection with XP


Hey!

I would like to be able to share my Windows XP machine's internet access with my RedHat 9 box, I have tried my best but can't manage to do it.

Any help would be much appreciated!

Cheers,
Silverstormer
 
Old 05-07-2003, 02:31 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
so what was your setup? were you getting any error messages? what is the result of "ifconfig" ? is your ethernet card recognised, are the modules loaded? ..........................
 
Old 05-07-2003, 02:42 PM   #3
silverstormer
LQ Newbie
 
Registered: May 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, I was a bit brief...

I have freshly installed RedHat 9 as standard. I can ping my XP machine from Linux and access its shares.

Linux machine is connected to XP machine via a crossover cable, network card to network card.

XP machine is connected to a cable modem via USB and is working fine. I have even enabled ICS to see if that works, also I have made an entry in my firewall for linux box.

No error messages except, "Can not resolve host" when trying to goto URL...
 
Old 05-07-2003, 03:13 PM   #4
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
looks like linux box is not getting the DNS information, maybe it has to do something with your windoz firewall
 
Old 05-07-2003, 06:32 PM   #5
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Rep: Reputation: 15
i am having the same problem with mandrake 9, what can i do?
 
Old 05-08-2003, 09:59 AM   #6
ealpert1
LQ Newbie
 
Registered: May 2003
Location: Colorado
Posts: 24

Rep: Reputation: 15
Are you running dhcpd on the linux machine? Theres some netbios stuff that needs to go into the /etc/dhcpd.conf file to send nameservers to the windows machine.

http://www.tldp.org/HOWTO/mini/DHCP/x369.html
 
Old 05-08-2003, 10:36 AM   #7
mawdryn
LQ Newbie
 
Registered: Jun 2001
Posts: 25

Rep: Reputation: 15
Hi,

a fresh install of linux will not allow any packet forwarding. If I remember correctly, the following commands may get you started...

echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

you may also want to check your route to make sure the default gateway is linked to ppp0

Hope this helps

Last edited by mawdryn; 05-08-2003 at 10:38 AM.
 
Old 05-08-2003, 10:45 AM   #8
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
As ealpert1 said, it must be a DHCP problem. Try getting dhcp to work or try netconfig and configure your IP, gateway and DNS manually.
 
Old 05-08-2003, 10:53 AM   #9
mawdryn
LQ Newbie
 
Registered: Jun 2001
Posts: 25

Rep: Reputation: 15
sorry, my mistake... I didn't read that the modem was on the xp box :P

is the linux box configured with a static ip or is it using dhcp like the others suggested..
 
Old 09-10-2003, 11:28 PM   #10
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Rep: Reputation: 15
This works for me.....XP has a modem attached and I use wingate to share the connection. On the linux boxes I assign the XP box as the gateway and assign my ISP's DNS IP as the DNS server. This also works for other windoze machines to share from the XP box. (using wingate may be cheating but hey it makes it very easy....is there a similar opensource program to run for linux??)
 
Old 09-11-2003, 10:17 AM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If your Linux PC has a static IP, you can add the DNS IPs manually to /etc/resolv.conf
The syntax looks like this:
Code:
nameserver x.x.x.x
 
  


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 Connection Sharing backroger Linux - Networking 2 02-25-2005 12:13 AM
Internet Sharing: Redhat9 and Windows XP Pro Cloud78 Linux - Networking 16 08-05-2004 03:23 AM
Internet Connection Sharing with Redhat9 Ogi Linux - Networking 5 07-16-2004 05:01 PM
help with redhat9.0 internet sharing icecube76 Linux - Networking 1 06-29-2003 06:58 AM
Internet Connection Sharing joe7.1 Linux - Newbie 0 02-07-2002 12:25 AM

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

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration