i want to connect two LANs, each one has a router, to allow pc's to communicate between the two LANs without internet. i am a complete beginner in networking and i need to make this project urgently. it's supposed to look something like this https://i.sstatic.net/Jj02q.jpg . how to connect two routers with an ethernet cable? and if possible, can anyone give me the easiest solution to implement the network in the picture.
1 Answer
You'll probably want a routed link.
- Select a network that's not used anywhere like
10.255.254.0/28
. - Select two IP addresses from this network, e.g.
10.255.254.1
and10.255.254.2
. - Configure one port on each side with one of them.
- Connect these two ports.
- Make each remote network known to the other side by setting either a static route or by using a common routing protocol like OSPF.
- Set each router as default gateway for all local hosts (you're not going anywhere else without Internet).
- Enjoy.
-
thank you for the well structured answer, how do i connect both routers? using WAN or LAN ports? i dont intend to use internet in any of them– alaCommented May 9, 2018 at 15:09