Quick lesson in subnetworking, because I think the problem isn't your
IPtables-settings but your network layout.

192.168.0.x is a class C network address. 192.168.0 is the network
address, and the last number is the host-portion of the address.
If all PCs have an address beginning with 192.168.0 and a netmask of
255.255.255.0 they are on the same subnet, and don't need routing.
If you need to separate your LAN into difefrent subnets, use 192.168.0.x
and 192.168.1.x etc...

Creating a subnet with mask 255.255.255.255 isn't possible, because that
way you don't have any broadcast/network-addresses.

If you think this goes into the right direction, please give more
details about your LAN and ask for more information :-)

regards,
Steven
(CCNA)




On Sat, 2003-06-28 at 20:47, SainTiss wrote:
> Well, what I *need* e.g. on the gateway is something like this:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.0.3     0.0.0.0         255.255.255.255 UH    0      0        0
> eth2
> 192.168.0.2     0.0.0.0         255.255.255.255 UH    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
> 
> However, by default those upper 2 rules aren't there, and instead
> there's a rule like this:
> 
> 192.168.0.0     0.0.0.0         255.255.255.0 U    0      0       
> 0     eth2
> 
> So in other words, by default ALL LAN traffic is routed through eth2,
> while obviously traffic with 192.168.0.2 should be routed via eth1.
> 
> Did that make it any clearer?
> 
> Thanks,
> 
> Hans
> 
> On Sat, 2003-06-28 at 20:18, Bill Mullen wrote:
> > On Sat, 28 Jun 2003, SainTiss wrote:
> > 
> > > I just changed my network configs here, and it seems the routing table
> > > got messed up...
> > > 
> > > I know the solution (ie adding some rules and deleting some), but I was
> > > wondering if there was some file or something where I could specify the
> > > right rules, so that the table is setup correctly at boot?
> > > 
> > > what's the default way to do this? I'm guessing some file which is then
> > > processed by ifup or something, but I'm not sure...
> > 
> > Depends on what's messed up. :)
> > 
> > Most settings draw on the information in the "/etc/sysconfig" directory, 
> > specifically the "network" file and the various "ifcfg-<interface>" ones 
> > in the "network-scripts" subdirectory. For simpler setups, these are all 
> > you'll need to adjust, but we have no idea how complicated your normal 
> > routing table actually is ... care to offer a hint? ;)


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

Reply via email to