Consistency in configuration is key for management and troubleshooting. The UniFi platform allows the configuration of Profiles. I’ll be looking at Switch Port Profiles in order to quickly set parameters to a switch port with just a drop down option.
As an example, let’s say there’s an environment where many access points will connect. In my Wi-Fi network I’ll have two SSIDs broadcasting, both on different subnets. Rather than going every single port, converting it to a trunk and allowing the specific VLANs, I’d like to just select a Switch Port Profile to configure that all for me.
Log into your UniFi dashboard and click on the Gear icon located on the bottom left of the window. Once the Settings page is available, on the left navigation under Settings, click on Profiles.
Profiles has two sections, RADIUS and Switch Ports. Click on Switch Ports.
I already have Switch Port profiles configured. But we’ll add a new one for this example. On the bottom, click on Add New Port Profile.
Next, we enter the various parameters for our UniFi Switch Port Profile. Give it a descriptive name. Since I’m configuring this profile for access points I will enable PoE/PoE+.
My access points will be plugged into a trunk port. I’ll need to set the Native VLAN or what UniFi calls the Native Network. I like to place all my access points on my infrastructure VLAN which I’ve selected in the drop down.
Next, we tag the networks we want to include on this trunk. These are the two networks I’ll map to my SSIDs.
The other settings I’ll leave as default. But we could modify settings such as the Link Speed or maybe set up Storm Control. There have been scenarios where I’ve needed to set a threshold for multicast or broadcast.
Once finished, click on Save.
Now it’s time to use this Switch Port Profile. I head over to Devices and select my UniFi switch.
I see see switch ports I can modify. Select one of the ports to bring up the menu so we can modify the settings.
Hover over the port you want to configure and click on the pencil icon to modify.
Within the individual switch port, we can select a Switch Port Profile, the one we just configured, in the drop down menu. Select this profile and click on Apply.
The switch port is now configured as a trunk with the requirements we need to properly allow the broadcast and operation of our Wi-Fi network.
Switch Port Profiles can be configured to your requirements. In my example, I used access points. But maybe you have a set of different server port configurations. Configure the Switch Port Profile and now it’s much simpler, efficient, and clean to set the port configuration.
Sure, you can set up the port to be a trunk allowing all VLANs, but why should you allow VLANs on a port that isn’t required to be on?