UniFi - BSSID to MAC Mapping


This article describes the logic between the BSSID (Basic Service Set Identifier) and corresponding radio's MAC address.

NOTES & REQUIREMENTS: This article applies to Gen 1, Gen 2 and Gen 3 UAPs, excluding the Broadcom based models. (See what Generation your UAP is here).

Table of Contents

  1. Introduction
  2. How to Find Mapping in the UniFi Controller
  3. Related Articles


Back to Top

An access point uses multiple MAC addresses for layer 2 communication on the different interfaces. The MAC address of a wireless interface is called the Basic Service Set Identifier (BSSID). A wireless access point needs a way to dynamically create those BSSIDs as it can have different numbers of SSIDs. In general, each radio and network interface has a globally unique MAC address programmed when the AP leaves the factory. Software uses that base MAC address to derive the BSSID using the following logic:

  • The first SSID uses the default hardware MAC of the radio
  • Every subsequent SSID sets the U/L bit (bit 1 of the first octet) to 1, indicating a locally administered MAC address. In addition, it increments the most-significant 4 bits of the first octet by (SSID index - 2).

For example, an AP with MAC address 80:2a:a8:17:74:b5 and four SSIDs: SSID1, SSID2, SSID3, SSID4 would use the following mapping:

SSID1: 80:2a:a8:17:74:b5

SSID2: 82:2a:a8:17:74:b5

SSID3: 92:2a:a8:17:74:b5

SSID4: a2:2a:a8:17:74:b5

Note that this MAC address, 80:2a:a8:17:74:b5, is the MAC of the radio broadcasting those SSIDs, and does not correspond to the MAC address of the wired ethernet port. The ethernet port is usually close by (i.e. modification of one of the octets by 1 or 2, depending on the number of radios), but it is not defined which octet gets modified.

How to Find Mapping in the UniFi Controller

Back to Top

1. Navigate to the Devices section of the controller. 

2. Select an AP.

3. In the property panel is a section called WLANS with a drop down. There is a BSSID column where this information is available.

This is a basic example of a network with one wireless network.

Related Articles

Back to Top

UniFi - Hardware Generation of UniFi Access Points

We're sorry to hear that!