Modified on: Tue, 10 May, 2022 at 3:15 PM
Some Unifi switches have been seen to stop passing traffic to other switches or routers. This appears to be caused by Spanning Tree Protocol (STP) loop protection causing the uplink port to be blocked. Depending on where the Unifi controller is hosted this can cause the switch to appear offline and can stop DHCP traffic from passing to and through it.
There are two potential solution steps for this issue. Both should be applied and tested.
This should be done via the controller if possible. If the controller is off site or unreachable past the blocked port then a host (eg. Laptop) running the latest Unifi Network Controller software with a basic configuration can be used to temporarily adopt the switch and apply the latest firmware. The switch may need to be reset to defaults to allow adoption with this temporary controller.
Firmware can also be applied via SSH with a reachable HTTP/S server hosting the firmware file although the Unifi controller method is easier.
Using either the permanent or temporary Unifi controller select the switch from the list of devices and under advanced settings disable STP.
You can also disable spanning-tree per port if you need it elsewhere in your network. In this case just disable for your router uplink port.
In some cases disabling STP from the controller first can allow for the switch to reach the internet to retrieve the firmware update file directly. This is fine if the controller is not attached past a blocked port.
To temporarily disable spanning-tree e.g. if you need to reach out to a cloud based controller then run the following commands via CLI
This change is effective immediately and if applicable the DHCP client will get a new address from the upstream DHCP server so your SSH session will drop. You should then be able to adopt into your remote controller, provision changes etc..
NOTE: You may need to do this more than once to get it fully provisioned.
Did you find it helpful? Yes No