On Sat, 29 Jun 2003, SainTiss wrote:

> Ok, anyway, I've tried to change the IP addresses now so that they are
> in different subnets, but that doesn't really seem to help... pinging
> between the 2 client pc's doesn't even work anymore now...
> 
> This is the config:
> 
> gateway (192.168.0.1 and 192.168.1.1):
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth2
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth1
> 213.118.248.0   0.0.0.0         255.255.252.0   U     0      0        0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
> lo
> 0.0.0.0         213.118.248.1   0.0.0.0         UG    0      0        0
> eth0
> 
> client 192.168.0.2:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
> lo
> 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0
> eth0
> 
> client 192.168.1.2:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
> lo
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0
> eth0
> 
> I'd think this is supposed to work, no?
> 
> Any ideas as to what is wrong with this setup?

Well, as for the pinging problem, do you have IP forwarding turned on?

In the /etc/sysconfig/network file:

FORWARD_IPV4=true

Once the network service is restarted, they should see each other again.

If you expect these other systems to have access to the WAN by way of this
machine, however, you'll need to set up NAT, which is done using iptables 
(usually, by way of an iptables configuration front-end such as guarddog, 
firestarter, Bastille, or the Mandrake Control Center's applet, which uses 
the shorewall system). You can also set up your iptables rules manually, 
if you're so inclined, and use the "iptables" app itself to save them and 
to load them. Check the iptables man page, and such 'net resources as the 
Linux Documentation Project's HOWTOs and the home pages for the netfilter 
project (which includes iptables) and for shorewall.

http://www.tldp.org/HOWTO/HOWTO-INDEX/networking.html
http://www.netfilter.org
http://www.shorewall.net

-- 
Bill Mullen   [EMAIL PROTECTED]   MA, USA   RLU #270075   MDK 8.1 & 9.0
The engineer is neither optimist nor pessimist. He sees the proverbial
half-full/empty glass and says, "The glass is twice as big as there is
any need for it to be."

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to