Although old, this is still an interesting question; can you supply more information?
Do you indeed want to map
all IP addresses on Net-1 (192.168.1.0) to the corresponding IP address on Net-2 (192.168.100.0)? 192.168.1.
n ==> 192.168.100.
n
The topology isn't clear --
Quote:
They are connected to each other via two "gateways".
|
Does this mean that each gateway has an additional NIC connected by a cross-over cable to the other?
Although we might be curious as to why you can't access the Net-1 Gateway (192.168.1.1), we don't need that info. to solve the problem.
The important question is whether your Net-2 gateway (192.168.100.1) "sees" all traffic on Net-1. If the packets on Net-1 never get to a router under your control, you can't forward them to anything on Net-2.
Do the IP addresses on Net-1 (192.168.1.
n) represent real machines; and, if so, do you want to
a)
divert or
b)
duplicate
the packets on Net-1 to Net-2?
Yes, there is something called static NAT (SNAT), & it may be what you need.
Where to begin w/ IPTABLES rules is a huge Q; "RTFM", while always a good idea, will only scratch the surface.