Cambium cnMatrix - Auto Attach Policy
Problem Description:
Cambium has a great feature where you can configure devices to automatically self configure the ethernet ports based on MAC address, MAC OUI, LLDP and many more.
The aim of this guide is to show you the process.
How to configure Auto-Attach via CLI
There are three basic steps which are:
Create a Rule
Create an Action
Create a Policy
Step 1 - Disable Authentication on Uplink and Static Ports
So that the Auto Attach Policy doesn't modify any uplinks or static ports it needs to be disabled on those ports.
configure terminal
gi 0/24
no lldp pba-tlv-select authentication
Step 2 - Create an auto-attach rule
The first step is to create a rule against the MAC or LLDP value you wish to use in this guide we will be demonstrating MAC-OUI
auto-attach rule CCTV-1 MAC-OUI "F0:7D:68"
Step 3 - Create the auto-attach action
The second step is to determine what is to occur based on the rule above. In this instance, the device will be placed into VLAN 9 with the PVID set to 9 and the uplink port set to Gi0/24
auto-attach action CCTV-1-action vlan 9 pvid 9 uplink Gi0/24
Step 4 - Create the auto-attach Policy
The last step is to combine the rule and action together into a policy so it takes effect.
auto-attach policy CCTV-1-policy match rule CCTV-1 set action CCTV-1-action