gluon/docs/dev/mac_addresses.rst
David Bauer 92af7c80a6 gluon-core: rewrite MAC-address generation logic
This rewrites the MAC address generation logic to distinguish between
MAC addresses assigned to a wireless interface or virtual / wired
interfaces.

Each radio is now assigned a range of SSIDs, allowing for up to 8 SSIDs
per radio. Previosuly, there were 8 MAC addresses total for the entire
device.

To keep compatibility on already deployed nodes, MAC addresses for wired
/ virtual interfaces stay unchanged.

This change is required to support nodes with more than 2 radios.
It also allows us to increase the number of VAPs per radio.
2020-04-16 23:59:21 +02:00

25 lines
684 B
ReStructuredText

MAC addresses
=============
Many devices don't have enough unique MAC addresses assigned by the vendor
(in batman-adv, each mesh interface needs an own MAC address that must be unique
mesh-wide).
Gluon tries to solve this issue by using a hash of the primary MAC address as a
45 bit MAC address prefix per radio. One additional prefix is dedicated to wired
interfaces as well as the mesh-protocol.
The remaining 3 bits are assigned to the following interfaces / VAPs:
IDs for non-radio interfaces defined so far:
* 0: WAN
* 3: batman-adv primary address
* 4: LAN
* 7: mesh VPN
IDs for radio interfaces defined so far:
* 0: client
* 1: mesh
* 2: owe
* 3: wan_radio (private WLAN)