Unifi: Set VLAN on unifi switch and UAP

Unifi: Set VLAN on unifi switch and UAP


Set unifi switch vlan and UAP VLAN WiFi on unifi controller. This example will using Mikrotik sent tagged (Trunk), (VLAN ID 1, 101, 102, 200) to unifi switch and from this switch connect to UAP (Untagged VLAN ID 102), and LAN port will untagged VLAN ID 101.

  1. Tagged VLAN on Mikrotik (Bridge > VLANs).

  1. On Unifi controller set VLAN (Settings > Networks > Create New VLAN).
    1. Create Vlan 101 for LAN
    2. Create Vlan 102 for WiFi
    3. Create Vlan 200 for Guest
    4. Vlan 1 for Default network

  1. Create SSID WiFi for receipt Vlan (102, 200).
f
  1. SSID: S for received Vlan 102.

  1. SSID: S Guest for received Vlan 200.

  1. Port 1-5 connect to UAP as set untagged Vlan with specific SSID, So all client conected to SSID S with received IP set Vlan ID 102 and client conected to SSID S Guest with received IP set Vlan ID 200.

  1. On UnifiController goto (Devices > Unifi Switch > Port Manager).

  1. Set port 6 to untagged Vlan id 101 for Lan port.