Question:
How to I setup Unifi Access Points to work with a Cisco Switch with VLAN’s
Answer:
Here is how to to add a SSID to a existing VLAN that is already setup on the switch.
1. In the Unifi controller under settings/Wireless Networks add the SSID you wish to be on the new VLAN under the edit Menu.
2. On the Cisco Switch with IOS installed go to the interface that is connected to that Unifi Access Point. “best to use the Command Line” “For Example I am using gigabitEthernet0/23”
enable
conf t
interface gigabitEthernet0/23
3. Switch the port from access to trunk
no switch port
4. Turn on the trunk allowed and allow all the VLAN’s that allowed on that interface. Make sure to include the network used for management. “For example I am allowing VLAN 1 and VLAN 2”
switchport trunk allow vlan 1,2
5. Turn on trunk mode
switchport mode trunk
6. Turn on spanning-tree portfast trunk. This will help with devices get an IP address faster.
spanning-tree portfast trunk
7. Make sure there is no other entries under that interface.
exit
This will exit the interface
exit
This will exit the configure Terminal mode
show running config interface gigabitEthernet0/23
Should look like this
interface GigabitEthernet0/23
switchport trunk allowed vlan 1,2
switchport mode trunk
spanning-tree portfast trunk
end
8. Write your changes to the startup config file. This is done in the enable mode.
wr
As long as the access point is adopted to the controller and your Wifi device connected to the SSID on that Access Point that is connected to the VLAN I will now connect to other devices on that same VLAN.