internet
   |
   |
gateway 1
   |
   |
subnet a       gateway 2    subnet b
   |             |  |          |
   *-------------*  *----------*

subnet a is 192.168.1.0
subnet b is 192.168.2.0

gateway 2 has two NICs, 192.168.1.101 and 192.168.2.254

Using ipchains I've setup gateway 2 such that subnets a and b can see one
another and both subnets can access the internet.

Eventually subnet b will be moved to a remote site and one of the NICs will
be replaced with a modem.

In the meantime systems on the two subnets are connected to the same hubs
and string and such and it's no big deal to create routes b/w them without
using the gateway.

Anyhoo I figured while experimenting with this stuff I could get away with
one NIC in gateway 2 and use IP aliasing to give it an IP address on each
subnet so that I could work out how to drive all this new fangled fancy
ipchains stuff.

Well, it doesn't work. Seems you need two hardware interfaces to get
forwarding / masquerading to work.

Now why is that ?


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to