Hello,
I'm running OpenWrt 24.10.0 r28427-6df0e3d02a on a Turris Omnia. The Network configuration runs fine without STP turned on. As soon as I turn it on the switch is not reachable any more. I have to set up a serial connection to disable STP. After that it is reachable. In the current network setup STP on the router is not necessary, however it shall be part of a redundancy loop later. As Anyone an idea where the mistake is?
Here is the result of uci show network:
When STP is turned on I can't reach the "new router" Turris on any port. neither wan/DMZ nor lan.
I've tried ping, SSH, HTTPS. I don't get any response. Via the serial-console I can see it looking for a DHCP server on "br-lan.1". On the lan ports it sends out constantly STP requests. It seems not to receive any STP message. As soon as I switch off the STP uci set network.@device[0].stp='0', uci commit, /etc/init.d/network restart, I can access the Turris from the wan and the lan side again.
STP is involved on the br-lan. Yes the wan-port is connected to the DMZ-switch and receives an IP-address from the internet route via DHCP.
Yes, while I'm on Computer A or B I loose all connections to Turris. However both computers are still connected to the internet vie the old router (standard gateway).
Ubuntu Linux on both computers.
I use the wan IP of the Turris https://x.x.x.x with firefox, ping or ssh.
Yes, as these protocols are working without STP.
In the final set up there will be no DMZ any more. It's only for testing purpose. It makes me more comfortable to open ports on the wan side of the Turris.
Turris is broadcasting on the DHCP ports with its own MAC-adress.
If "testing client" refers to the Turris yes. If testing client refers to one of the computers no. They receive the IP configuration from the old router via DHCP.
This was configured via luci, by enabling vlan on the last register page. Then I added a device. the configuration works without STP. How should it look like from your point of view?
It works without STP because while disabled, it doesn't care the MAC addresses are located on "different" networks. Since they're both are clearly br-lan, it shuts it off. This matters in your case because it's the same bridge.
I actually noted this in another thread recently:
I believe your problem would be fixed if your "flat" br-lan was also converted to a numbered VLAN br-lan.x - where x is a unsued VLAN number.
It's not clear why you have switches that connect LAN to WAN of your Turris - but that's (hopefully) a discussion for a different thread.
Before we even worry about STP, it might be worth understanding the desired behavior.
You have three routers:
the "internet router" is presumably the connection to the internet, which would mean its purpose is pretty obvious. But is it routing, or in bridge mode?
What is the purpose of the old router in your network?
What firmware is the "old router" using?
What is the purpose of the new router in your network?
What firmware is on the "new router"?
Are the 3 lan switches managed switches? Or are they basic unmanaged ones?
Are computer A and computer B supposed to be on the same network?
The internet router is routing & firewalling, not bridging.
As soon as the new router is up and running and working as intended, it will be connected to the internet and the internet router and the old router will be dismantled.
The old router runs OpenWrt 23.05.5 r24106-10cc5fcd00
The new router shall take over the role of the internet router. see 2.
The new router runs OpenWrt 24.10.0 r28427-6df0e3d02a
Yes they are managed switches and have STP enabled. As soon as the STP together with vlan 1 is running I intend to add further vlan for priv-lan, IOT, Guest, etc. on the new router. These are already configured in the old router and the switches.
The computers are both on the priv-lan. Computer B has a second network card with a fixed IP in the nms lan connected to the new router.
So I added eth0 also to br-lan on the new router and applied the configuration. This resulted in loosing the links to the switches and the new router was only accessible via the wan interface.
After turning on the STP on br-lan also the wan interface did not react any more. The automatic rollback did not initiate. After disabling the STP again on br-lan via the console the wan interface responded again.
Since your topology will be changing significantly relative to what you have drawn in your existing diagram, it doesn’t make a lot of sense to base your configurations on the current setup. Instead, draw your desired topology so we can see where you want to go with the entire system. Please be sure to label the devices with their brand+model, addresses, and also functions (i.e router vs bridged ap).
The idea is to have a L2-ring with managed switches (Zyxel GS1900 with latest Zyxel firmware) and STP on. The access points (AP) are Ubiquiti UniFi AC Lite running OpenWrt 23.05.5 r24106-10cc5fcd00. The router shall be a Turris Omnia with OpenWrt 24.10.0 r28427-6df0e3d02a.
There shall be several vlans
green, nms, ID 100, 192.168.100.0/24
blue, lan, ID 110, 192.168.110.0/24
yellow, IOT, ID 120, 192.168.120.0/24
transparent, Guest, ID 130, 192.168.130.0/24
The vlans lan, IOT and Guest shall also be propagated via wlan.
lan shall have access to
internet for http, https, smtp, imap
nms for http, https, ssh
IOT for http, https, ssh
Guest shall have access to the internet for http, https, NTP
IOT and nms shall have no access out side the respective vlan.
The router shall provide DHCP, DNS, NTP for all vlans
These are my ideas and they are actually already up an running with different ID and IP as given above, but the concept is the same. The old/existing router is a Fritz.box 7530 running OpenWRT 23.05. For some reason I don't get the Turris router to take over.
Plans for the future:
All OpenWRT devices shall be upgraded to the same firmware release.
The router shall allow for incoming VPN connections to the different vlans.
The shall be another vlan/wlan for an external VPN connection to a distant separated (friendly) lan.