Eventually, I was able to make it work. Thanks to @LTS_Tom and @planedrop for your help and suggestions.
I leave here what I had to do step by step:
- Configure the port where you connect your new device as access port in VLAN 1 and Allow All for Tagged VLANs.
- Factory reset the device
- Go to the UniFi Devices list and the device should appear with status “Click to Adopt”. After clicking it should take a while “Adopting”, then “Getting Ready” and finally “Up to date” (it might update the firmware in the middle if necessary).
- Select the new device and click on the
to configure it.
- Change the device name if you want.
- Check the
Network Override checkbox. - Select the VLAN you want to use in “Virtual Network”.
- In IP Configuration select
Static. - Configure IP Address, Subnet Mask, Gateway and DNS servers.
- Apply Changes
- The status should show “Getting Ready” and then “Up to date” again
- Now you can reconfigure the port where you connect the device. You can either configure the port or use a Port Profile, in any case the port should have the following:
- Native VLAN/Network: the VLAN where you manage your devices (the network that holds the IP address you configured manually above
- Either Allow All Tagged VLANs or choose Custom and the VLANs you manually select to allow must include VLAN 1