Basic question about routing

Hi at all,
and thanks for providing all that OpenWRT-stuff ...

I'm a little bit lost in a question about routing, and may be I've understood something wrong?

Running OpenWRT 24.10. on an Netgear GS108Tv3. Firefall is not active at the moment; Startup DISABLED, this only for testing purposes yet.

Ports LAN1, LAN2, LAN7 and LAN8 in a bridge, which acts as a DHCP-client and get's the wished IP 192.168.0.7 from another DHCP-server.
Ports LAN3, LAN4, LAN5 and LAN6 in a another bridge, static IP 192.168.1.2 defined. On LAN3 is another device with 192.168.1.1 and on LAN4 one with 192.168.1.11.
When SSH to OpenWRT (192.168.0.7), I can ping all in the network 192.168.0.0, for example 192.168.0.8 or 192.168.0.16; I can also ping 192.168.1.1 or 192.168.1.11 from the same SSH-terminal.

On my testing-machine 192.168.0.16 I've set up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.7 dev eth0 From 192.168.0.16 I can ping 192.168.1.2 after that. Now the question: Can I set something in OpenWRT, that I can reach 192.168.1.1 or 192.168.1.11 too with Routing-Setup or can this only be done by Firewall-Settings?

Please describe in detail, but description via LuCI is not strictly needed, I assume it can be done in '/etc/config/network' or such?

Thank you very much, FM_81

If remember correctly, the routing's very slow, you don't want to do it on a switch.

1 Like

I've no experience, if it will be slow or not?
I'm still learning and I want know, if it is possible, or if I'm thinking wrong, and/or what I'm doing wrong?

It will be very slow on a switch. At best, ~20Mbps.

Do you still want to route via the switch? It is always better to use a proper router for routing.

But yes, it's technically possible -- it actually depends on the upstream router, though -- it needs to have a static route installed. Does your upstream router support user-configured static routes?

What are you trying to do?

This is possible but not exactly standard practice. Typically you would have a upstream device to terminate your Vlans on. On the switch you would put all the ports into a bridge and then use Vlans to separate out the traffic.

Thanks, this was the key! After setting a route in the upstream-router it works as expected. Of course it is very slow, but this was not my main-target!

Best Regards, FM_81

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