Darryl Ross dross at
Fri Jul 26 23:14:32 CST 2002

> Dear Friends,
> Even though this problem is not exactly related with
> Linux, I hope somebody will reply.

Networking issues are faily common with Linux (well, any *nix), just
because you have much more flexibility in configuring it.

> Can a LAN say 192.168.30.***   have a gate way 10.15.20.***

Technically yes, if your subnet mask was something like, as they
would then be in the same network. However, the trouble with that is there
would be no point in having a gateway as you're saying that every IP
address is on your local network.

The 192.168.30.xx block is part of the Class C address space so the
default subnet mask is (or /24). The 10.15.20.xx block is
part of the Class A address space so the default subnet mask is
(or /8). Note that even though we have CDIR routing now, there are still
Class A, B and C address spaces, it's just that you would find it
extrememly difficult to get allocated an entire class these days.

> Will it work. I am confused because LAN and gate way or on different IP

You can't just look at 2 IP addresses and say whether or not it will work.
You need to take into account the subnet mask. Take for example the network (the third, mostly unused, 'private' address space). and are in the same network although it
could be hard to guess that just looking at them. (Those two I just used
as the example happen to be the lowest possible address in the block and
the highest possible address in the block)

In the normal situation, where your network address is and
the subnet mask is (/24), no, it will not work. The
router/gateway would need to have an address somewhere betweek and Most people I know make the gateway the
highest address in the subnet (I guess so that it's standard and easy to
find), but it doesn't matter what it is, as long as it is in the same

Hope that helps,

LinuxSA WWW:  IRC: #linuxsa on
To unsubscribe from the LinuxSA list:
  mail linuxsa-request at with "unsubscribe" as the subject

More information about the linuxsa mailing list