Ubiquiti Unifi Wirlesss Access Point not obtaining IP Address when VLAN Tagged

draytekipvlan

This question follows on from this one which I managed to resolve. Draytek 2830, Multiple VLANS on Same Port

My Ubiquiti Unifi Wirlesss Access Points are not allowing clients to obtain an IP address when VLAN Tagged. The Draytek 2830 which it is plugged directly into works and gives out addresses to my MAC when plugged in directly.

Interestingly (and maybe a clue) the Unifi Wirlesss Access Point doesn't obtain an IP Address itself, when plugged into Port Four of the Router. Which I have configured for VLAN 30 and 40.

Can anyone assist?

enter image description here

enter image description here

enter image description here

This is ODD… Just had the Wireless Accesss Point on line with a steady green light and giving out DHCP addresses on both VLANS. However when I went to the Unifi Controller, the access point is not seen 'Disconnected'

Then I noticed this;

enter image description here

So I changed the Wireless Access Point to Port 1 on the Draytek and the VLAN Setup to the following, it works!!! YEAH..

enter image description here

BUT it gets weird… IF I change the IP Addressing on VLAN1 (P1) FROM the default 192.168.1.0/24 to something else, anything else it stops working again.

BUT Why? I don't want 192.168.1.0 allocated to VLAN1…. I have two sites to get working both, identical setups with the exception of the IP Addressing. I have a P2P link to join these two sites, and I am guessing IF it remains like this I may have some issues.

Can anyone answer this question?

Best Answer

Management traffic in a Unifi APis always untagged according to the documentation.

How does vlan traffic get tagged?

traffic initiated from AP is untagged (sent through br0)

UniFi and switch VLAN configuration

In this example, we will trunk 4 different switches (Netgear, HP, Cisco, D-Link) and use AirRouter as the DHCP server also the gateway to internet. We choose 4 different switch brands to demonstrate UAP interoperability. We will create 4 WLANs (vlan10_mgmt, vlan20_user, vlan30_finance, vlan40_guest) in 4 different VLAN id (10, 20, 30, 40) each. To make things a little bit more complicated, we didn't use the default VLAN 1, but set VLAN 10 to be untagged to carry UniFi AP management traffic. It shall be fairly easy for readers to change management VLAN from VLAN 10 back to use default VLAN 1.

This is why it works with the second setup.

I would suggest adding untagged VLAN to Port 4 in the first example and see what happens. This is also recommended in the user manual of the router.

http://www.draytek.co.uk/download/support/userguides/Vigor2830%20User%20Guide%20V2.31.zip

Note: Leave one VLAN untagged at least to prevent from not connecting to Vigor router due to unexpected error.