LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   RedHat9 sharing internet connection with XP (https://www.linuxquestions.org/questions/linux-networking-3/redhat9-sharing-internet-connection-with-xp-58610/)

silverstormer 05-07-2003 02:24 PM

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

manthram 05-07-2003 02:31 PM

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? ..........................

silverstormer 05-07-2003 02:42 PM

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...

manthram 05-07-2003 03:13 PM

looks like linux box is not getting the DNS information, maybe it has to do something with your windoz firewall

the anti-riced 05-07-2003 06:32 PM

i am having the same problem with mandrake 9, what can i do?

ealpert1 05-08-2003 09:59 AM

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

mawdryn 05-08-2003 10:36 AM

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 :)

angelrod 05-08-2003 10:45 AM

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.

mawdryn 05-08-2003 10:53 AM

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..

Crasherz 09-10-2003 11:28 PM

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??)

Mathieu 09-11-2003 10:17 AM

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


All times are GMT -5. The time now is 09:33 PM.