Here are the main steps to share your internet connection : First thing to do : setup your LAN. While you can't ping any machine from any other machine, you'll be in trouble. Then : setup your gateway's second network card so that your gateway can access the internet, as if it was a simple machine connected to the net. (setting up a NIC on a linux machine is easy with the netconf program.) And now comes the time to share your connection : enable the forwarding on your gateway : echo 1 > /proc/sys/net/ipv4/ip_forward Tell your kernel to forward and masq the messages : ipchains -P forward MASQ On the other machines on the LAN, define your default gateway as to be your LAN's gateway (192.168.1.1) and set your DNS to your ISP's provider. (in Win 98, this is done in the network-properties.) Now, it should work. Perform the following test (in that order) from your gateway : ping [your.default.ISP.gateway] If it doesn't work, your NIC is not properly set up. ping 198.182.196 (this is the ip adress of www.linux.org) If it doesn't work, your default gateway is not properly set up. This is easily corrected by typing 'route add default gw [your.default.ISP.gateway]' from a window machine : ping 192.168.1.1 If it doesn't work, the problem is on your LAN. Ping each machine to itself to see where is the problem ping 24.112.141.188 If it doesn't work, check that the default gateway on your windows machine is set to 192.168.1.1 and that your gateway's outside NIC (the one connected to internet) is properly set up. ping [your.ISP.default.gateway] If it doesn't work, the problem comes from the sharing. on your gateway, type 'ipchains -L' to check that the default rule for forwarding is MASQ. Type 'cat /proc/sys/net/ipv4/ip_forward' to check that it is set to 1. If it isn't type again 'echo 1 >/proc/sys/net/ipv4/ip_forward' If you succeed until here, it means that your connection is shared. You're done! If you still encounter problems, they surely come from your DNS settings, or something like that. HTH Flupke Jaguar a écrit : > > I have IPv4 running but no matter what I try...I either break things or they > don't work. I have a cable modem to share between my other boxes here, on a > dedicated Linux machine. I have a network hub and all the wiring, but I can > not seem to get the second NIC in the MDK 7.02 box to broadcast, for the other > boxes to share the modem. Is there someone out there with a similar setup to > share thier IPCHAINS/MASQ/FORWARD file(s) so I can see what I have to end up > with (send to my home email if you like). > > My IP's are as follows: > L-MDK#1 ETH0:24.112.141.188 mask 255.255.252.0 <--good connection to Net > L-MDK#1 ETH1:192.168.1.1 mask 255.255.255.0 <-- NIC pings but no broadcast > Win 98SE#1: 192.168.1.2 mask 255.255.255.0 <-- NIC pings, no network > Win 98SE#2: 192.168.1.3 mask 255.255.255.0 <-- NIC pings, no network > Win 3.11#1: 192.168.1.4 mask 255.255.255.0 <---not setup yet (Mom's 'puter) > I have tried setting up the name search and things..but no joy as yet. > I know I must be missing something easy...but so far the various HOWTO's > haven't pointed it out yet...:( > If someone would be kind enuff to maybe write a complete NEWBIE (type this, > type that) instruction file...I would gladly send you a valued body part in > exchange...:) > Please help me... > TIA > Jaguar > > PS: the Win 98SE #1 box is just sitting there connected...but not doing > much...I can use that as a test system for the network, Win98SE#2 is the Win > box I do most of my surfing with...at least till I get the MDK working > correctly then I will use Win for games mostly and CUSeeme and MDK for > surfing/mail/etc... > > ____________________________________________________________________ > Get your own FREE, personal Netscape WebMail account today at >http://webmail.netscape.com.