Linking up two LAN on two routers

I have two routers, with two WAN (ISP) and two LAN.
I want clients on each router accessing only its own WAN, and
clients on one router can access clients on the other router.

How should it be achieved?

Thanks.

You need to provide some more information about the routers. Device info ubus call system board
Are they located in the same area? If yes, can they be connected directly by cable?

Router A

{
	"kernel": "4.4.60",
	"hostname": "GL-AX1800",
	"system": "ARMv7 Processor rev 4 (v7l)",
	"model": "GL Technologies, Inc. AX1800",
	"board_name": "glinet,ax1800",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "21.02-SNAPSHOT",
		"revision": "r16399+159-c67509efd7",
		"target": "ipq807x/ipq60xx",
		"description": "OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7",
		"tip-revision": "OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7 / TIP-devel-46c4b980",
		"tip-version": "devel"
	}
}

Router B

{
	"kernel": "4.4.60",
	"hostname": "GL-AXT1800",
	"system": "ARMv7 Processor rev 4 (v7l)",
	"model": "GL Technologies, Inc. AXT1800",
	"board_name": "glinet,axt1800",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "21.02-SNAPSHOT",
		"revision": "r16399+159-c67509efd7",
		"target": "ipq807x/ipq60xx",
		"description": "OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7",
		"tip-revision": "OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7 / TIP-devel-46c4b980",
		"tip-version": "devel"
	}
}

The two routers are just beside each another.

Thanks.

this is the gl.inet version of openwrt, you should ask them.

1 Like

Unfortunately this model doesn't seem to be supported directly from OpenWrt.
What you want is not too difficult anyway so you can give it a try. Create a separate network for the crossover link and assign it on port lan2. Add the new network to lan firewall zone. Add a static route for the neighbor lan network via the IP of the crossover network of the neighboring router.
If that doesn't work, you'd probably have better luck asking in the GL.inet support forum.

Is there any good router installing OpenWrt can you suggest?
I can use my existing routers as wireless access points.

there are lots of good routers supported, but you probably want to create a new thread, includling your requirement in

2 Likes

I have got it working following this thread:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.