Click to See Complete Forum and Search --> : Need help sharing internet


Hawkeyez
03-15-2002, 03:20 AM
PC 1 - linux 7.2 redhat 2 network cards
1 to hub, 1 to cable modem
eth0 set to use dhcp and works fine on the net

PC 2 - Winxp with one network card to the hub

What must I do to get eth1 (2nd nic) to allow my Winxp system with one network card connected to the hub to get internet access?
What must I do to Winxp setting to get it to get internet from linux box?

PS- I could care less about file sharing etc... just need XP to have internet THROUGH the hub and linux box.

Thanks
Hawk

guyndenton23
03-15-2002, 03:30 AM
is the XP box set to acquire an IP addy from the linux box? That would be my first line of business to see if the linux box is working on the 'interior' of your little LAN.

Nakuru
03-15-2002, 03:48 AM
I hope someone answers Hawkeyez' question as I have an almost identical problem.

PC 1: SuSE Live Eval 7.3 2 network cards
1 to hub, 1 to cable modem
etho0 set to use dhcp and works fine on net

PC 2: Win98 Laptop with one network card to the hub

SAME question: What must I do to get eth1 (2nd nic) to allow my Win98 system with one network card connected to the hub to get internet access? What must I do to Win98 setting to get it to get internet from linux box? I actually have a third Win98 PC (desktop) that has the same problem.

SuSE was killer on the "server" though. It recognized the cable modem connection without me doing anything and I was on the net on the first boot up with linux.

Nakuru (total newbie)

gwpritch
03-15-2002, 11:07 AM
Try this:

iptables -t nat -A POSTROUTING -j MASQUERADE -o eth1 -s 192.168.0.0/24 -d 0/0

On the XP laptop under the network options make sure your linux box is set as the gateway.

The above can be placed in /etc/init.d to execute at boot,

[ 15 March 2002: Message edited by: gwpritch ]