jaabi379 :
I think, this is the easiest one. but what IP i want to give to the shared router?
You assign a static IP to the WAN and LAN interfaces that’s valid on the network each happens to be facing.
Let’s assume the two networks are 192.168.1.x and 192.168.2.x. The WAN side of the shared router must face one of those networks, while the LAN side must face the other. Let’s assume the WAN faces the 192.168.1.x network, and the router used by the 192.168.1.x network is assigned 192.168.1.1. Assuming it’s available, assign the WAN ip of the shared router 192.168.1.2. Similarly, let’s assume the LAN faces the 192.168.2.x network, and the router used by the 192.168.2.x network is assigned 192.168.2.1. Assuming it’s available, assign the LAN ip of the shared router 192.168.2.2.
You’re just giving the shared router valid IPs on its WAN and LAN interfaces so it’s addressable from each network.
jaabi379 :
Also how to do static route, please put an example. i am not that much experienced.
Most (but not all) routers will let you add static routes using the router’s GUI. You need to add static routes because the routers used by the respective networks (192.168.1.1 and 192.168.2.1 in our example) don’t know that a gateway between the two networks even exists.
Continuing w/ our example IP assignments, we go to the GUI of the 192.168.1.1 router and add the following static route:
Destination: 192.168.2.0
Mask: 255.255.255.0
Gateway: 192.168.1.2
What this says is, any ip address in the 192.168.2.x network should be routed to the gateway at 192.68.1.2 (the WAN ip of the shared router we assigned previously).
Similarly, we go to the GUI of the 192.168.2.1 router and add the following static route:
Destination: 192.168.1.0
Mask: 255.255.255.0
Gateway: 192.168.2.2
What this says is, any ip address in the 192.168.1.x network should be routed to the gateway at 192.68.2.2 (the LAN ip of the shared router we assigned previously).
So now, anytime a client on either network refers to an ip address that resides on the other network, those clients will pass the traffic to their respective default gateways (which is the router on their respective networks), which in turn will pass the traffic to our shared router, because each router now KNOWS how to reach the other network thanks to our static routing.
Admittedly, a lot of this sounds more complicated than it really is because we’re describing this in text rather than pictures, but hopefully some of it is sinking in.
jaabi379 :
what you mean by "drop firewall" ? There is no separate firewall or anything here. Also don't have a server also.
The firewall I was referring to was that of the shared router. By default, most routers block all traffic from the WAN side into the LAN side, while allowing traffic to flow freely from the LAN side to the WAN side. It would make sense to drop/disable the shared router’s firewall in this case. We want traffic to flow freely in either direction. If both these networks are going to share resources, they should be considered ”friendly” to each other, making the use of a firewall between them unnecessary. But if you want to use the firewall and restrict access between them (e.g., only allow specific IPs to talk to each other), you certainly have that option. But at least for initial setup purposes, it’s a lot easier to configure everything and make sure it’s working if you disable the shared router’s firewall.
jaabi379 :
All is just like some computers we connected to a switch and switch to normal router from the Etisalat (provider).
Sorry, I don’t understand the question (or if it even is a question).