I have two networks in a LAN:
They use the same Linux router, what do I need to add with
route so that all computers see each other in the network?
I'm using IPCop as router software.
You need to ensure that the traffic from computers on either side of the router destined for the network on the other side goes through the router. You can do this by:
Hope that is what you were looking for.
If the IPCop system is the default router for systems on both networks, and routing is enabled on the IPCop system, it should just work.
If the IPCop system is not the default router, then each system needs a route telling it that the other network is reachable through the IPCop system, as Slartibardfast says, either
In both situations, the IPCop system has to have an IP address on both networks.
Assuming these are the blue and green networks, you can enable traffic between then in the firewall configuration. See the online documentation.
By default, a Linux box with NICs configured as described, and with IP-forwarding enabled, should just work as a router without any extra routing configuration. Your problem is that IPCop is an appliance intended to provide to each of one or more networks a NAT firewall/gateway to the internet, while at the same time restricting those networks from connecting to each other.
In all likelihood, IPCop uses
What your asking for is two 'bridge' two layer domains together. What you really want is two 'Route' to ip domains together.
There is a subtle but important difference.
Sometime this this can help. If you have any layer 2 switches , then the 'correct' name for a switch is a multi port bridge.
The internet is a collection of layer 2 segments, divided by routers, so to get from one part you being 'routed', however the connectivity between routers (at layer 3) is provided by layer 2.
In your case is sounds like you want to 'route' rather than bridge. Configuring routing is much hard then bridging, however you'll be glad you've done it once you have.
Once you understand the concept of ip routing with one default gateway, then progress to ip routing using two gateway's.
is a great book!