Connection new lan to current lan and allowing interconnection and internet

Hello, im trying to achieve somethign i think is quite straightforward but i have been banging my head against for 3 days now.

Im new on OpenWRT but i have some experience with cisco and huawei switch configuration, but i think im getting a bit confused on how everything are "devices" on OpenWRT.

I have this network, and what i want to achieve is for devices in both networks "192.168.1.0/24" and "192.168.5.0/24" to be able to find eachother as well as access to internet.

Both Switches A and B are the same model running OpenWrt "SNAPSHOT r29528-ffde9a9fe9"

All i managed to do is for Switch-A to be able to ping everything on network 192.168.5.0/24 , but nothing else (Switch-B unable to ping anything on 192.168.1.0/24 and none of the devices connected to Switch-A being able to ping any device on 192.168.5.0/24)

The way i achieved that is by creating a lan on Switch-A tagging port2 with the ip 192.168.5.1 and using it as a gateway for that network.

I cant find any tutorial that works on a situation similar to mine.

Could anyone point me to the right direction?

Thank you in advance.

  • How many routers are in your network, and which devices are they?
  • Did you make a static route to the networks in these devices?
  • How did you configure the OpenWrt devices as just switches?

Hello,

I have the ISP router to connect to internet, then both switches are based on realtek/rtl930x and i added routing rules trying to manage this connection im attempting, without success.

I m using the LuCi web UI as im not familiar with OpenWrt commands.

Please be more specific... what brand+model for each of the devices in your network?

Is that the router at the top left (192.168.1.1)?

What about the lan2 segment on the right side -- does that have its own internet connection, or is it the idea to provide internet from the ISP router at the top left?

What about the AP you have drawn in the lower left (192.168.1.2)? What brand+model is it and is it running OpenWrt or something else?

sorry,

192.168.1.1 is the basic ISP router, shouldnt matter here beyond adding static routes that i already did to send the traffic from 192.168.5.0/24 to 192.168.1.3 as it has the routing rule to that network.

The ISP router is the only internet connection on the whole system.

192.168.1.2 is an AP, we can ignore it

192.168.1.3 and 192.168.5.3 are:

XikeStor SKS8300-8X
RTL9303
realtek/rtl930x
OpenWrt SNAPSHOT r29528-ffde9a9fe9 / LuCI Master 25.126.20430~aabb253
Kernel 6.6.89

To set some initial expectations:

This device, as you know, is a switch, not a router. Yes, it is possible to make it route, but it will be very slow. Assume maximum routing speeds in the order of ~20-25Mbps.

Is that acceptable for your needs? If not, stop and get a proper router in the setup instead of using a switch as a router. (this is why I asked about your AP -- it might be possible to leverage that for the routing).

Let's see the configuration of your devices, starting with the full configuration from the device at 192.168.5.3 and a screenshot of your static route configuration on the ISP router:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall

Hmm.. okay, i expected better routing performance on those specs.

I will build a dedicated router.

Thanks for your time, but the post inquiry has been rendered obsolete.

Just for reference -- and to put the specs in perspective, see this article:

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

1 Like

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