How to Configure Port Security (LLDP Authentication and MAC Learning Limit Authentication) in Omada Controller

Knowledgebase
Configuration Guide
11-09-2026
197
This Article Applies to

Contents

Introduction

Requirements

Configuration

Configure LLDP Authentication

Configure MAC Learning Limit Authentication

Conclusion

Introduction

Port Security helps protect switch access ports from unauthorized devices and excessive endpoint connections. In Omada Controller, Port Security provides two authentication methods:

  • LLDP Authentication: Allows only devices whose LLDP information matches configured rules to communicate through the port.
  • MAC Learning Limit Authentication: Limits the number of MAC addresses that can be learned on a port, helping prevent unauthorized expansion and MAC table exhaustion attacks.

This article explains how to configure both authentication methods through Omada Controller.

Requirements

  • Omada Controller v6.4 or later
  • Managed switches (firmware that supports Port Security features)

Configuration

Port Security can be configured on individual ports, multiple selected ports, or through Port Profiles for large-scale deployment.

Configure LLDP Authentication

LLDP Authentication allows only devices whose LLDP information matches configured rules to communicate through the port.

Step 1. Before enabling LLDP Authentication, go to Network Config > Site Settings > LLDP and enable LLDP globally.

Note: At a minimum, Switch LLDP must be enabled; otherwise, LLDP Authentication cannot function on switch ports.

Enable LLDP globally under Network Config to allow LLDP Authentication to function on switch ports.

Step 2. LLDP Authentication can be configured at either the individual port level or through a Port Profile.

Per-port configuration path: Site > Devices > Device Details > Ports > Port

Port Profile configuration path: Site > Device Config > Switch Ports > Port Profile

The following example uses Port Porfile coniguration.

Navigate to Device Config > Switch Ports > Port Profile and click Add Profile to create a new switch port profile.

Step 3. Enable LLDP Authentication and configure validation rules.

Under Advanced Settings > LLDP Authentication > Enable.

Click + Valid Field to add one or more LLDP validation rules. Configure the LLDP Field and Value parameters according to the LLDP information advertised by the connected device.

Only devices whose LLDP information matches the configured rules can communicate through this port.

Note: Multiple LLDP validation rules can be configured for the same port. The validation logic is an OR condition, meaning a device is considered authenticated if any configured LLDP rule matches the LLDP information advertised by the device.

Expand Advanced Settings, enable LLDP Authentication, add LLDP validation fields, configure validation values, and save the Port Profile.

Supported LLDP Fields and Matching Rules

LLDP Authentication rules can be configured at different levels depending on the access control requirements. In general, authentication can be applied to:

  • All devices within a product category;
  • A specific device model within a product category;
  • A specific device identified by its MAC address.

The following IPC examples demonstrate how to configure LLDP Authentication for each scenario.

Configure LLDP Authentication rules for VIGI IPC devices, including all IPCs, a specific IPC model, and a specific IPC device based on MAC address.

For recommended LLDP fields, matching values, and configuration guidance for different TP-Link product lines, refer to the table below.

Device Type

LLDP Fields

Matching Rule

Example

Notes

Gateway

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device Name
Description: Omada Multi-Gigabit VPN Router
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All Omada Gateways: Use Description and enter Omada Multi-Gigabit VPN Router.
Specific Gateway: Use Chassis ID (MAC Address) and enter the device MAC address.

IPC

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device model name (e.g. InSight S345)
Description: IP Camera7470
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All VIGI IPCs: Use Description and enter IP Camera7470.
Specific IPC Model: Use System Name and enter the model name.
Specific IPC Device: Use Chassis ID (MAC Address) and enter the device MAC address.

OLT

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device Name
Description: DeltaStream Chassis XGS-PON&GPON Optical Line Terminal Main Control Unit
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All DeltaStream OLTs: Use Description and enter DeltaStream.
Specific OLT Device: Use Chassis ID (MAC Address) and enter the device MAC address.

NVR

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device model name (e.g. VIGI NVR2016H-16MP(UN) 2.0)
Description: Network Video Recorder7470
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All VIGI NVRs: Use Description and enter Network Video Recorder7470.
Specific NVR Model: Use System Name and enter the model name.
Specific NVR Device: Use Chassis ID (MAC Address) and enter the device MAC address.

Omada Switch

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device Name
Description: Omada Access Plus 48-Port Gigabit Switch with 4×10G SFP+ Slots
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All Omada Switches: Use Description and enter Omada. For firmware released before 2024, enter JetStream instead.
Specific Switch: Use Chassis ID (MAC Address) and enter the device MAC address.

ES Switch

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device Name
Description: Omada Switch ES220GMP_2.0
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

All ES Switches: Use Description and enter Omada.
Specific ES Switch: Use Chassis ID (MAC Address) and enter the device MAC address.

AP

System Name, Description, Chassis ID

Authentication succeeds if at least one configured rule matches.

System Name: Device Name
Description for legacy models: Linux 5.4.xxx...
Description for Wi-Fi 8 models: Omada,EAP888v1.0,1.0.0 Build xxxx
Chassis ID (MAC Address): xx:xx:xx:xx:xx:xx

Legacy APs: Use Description and enter Linux.
Wi‑Fi 8 and Future APs: Use Description and enter Omada.
Specific AP: Use Chassis ID (MAC Address) and enter the device MAC address.

Note:
  • Multiple LLDP validation rules can be configured for the same port.
  • Authentication succeeds when at least one configured LLDP rule matches the LLDP information advertised by the connected device.
  • For APs, the recommended field depends on the firmware generation:
    • Legacy AP models typically use Description values beginning with Linux.
    • Wi-Fi 8 and future AP models typically use Description values beginning with Omada.
  • System Name and Chassis ID can also be used when more granular device identification is required.
  • On certain TP-Link devices, System Name is derived from the Device Name and may change if the Device Name is modified in Omada Controller.
  • For third-party devices, users must obtain and verify the LLDP packet information advertised by those devices before configuring LLDP Authentication rules. The required LLDP fields and values may vary depending on the vendor, model, and firmware version.

Supported Chassis ID types

If Chassis ID is selected, the following identifier types are supported:

  • Chassis Component
  • Interface Alias
  • Port Component
  • MAC Address
  • IP Address
  • IPv6 Address
  • Interface Name
  • Locally Assigned

The input format must match the selected identifier type. For example:

  • MAC Address: Enter a MAC address.
  • IP Address: Enter an IPv4 address.
  • IPv6 Address: Enter an IPv6 address.
  • Other Types: Enter a text string.

Note: The configured value does not need to match the entire LLDP field. The connected device is considered valid as long as the selected LLDP field contains the configured value.

Finally, click Save to apply the Port Profile.

Step 4. Apply the Port Profile to the Target Switch Port.
Navigate to Port Settings > Select the switch port > Edit, select the Port Profile created in the previous steps from the Profile drop-down list, and then click Apply.

Edit the target switch port, select the configured Port Profile from the Profile drop-down list, and click Apply to deploy the LLDP Authentication settings.

Configure MAC Learning Limit Authentication

Step 1. MAC Learning Limit Authentication is configured in the same Port Profile page used for LLDP Authentication.

Under Advanced Settings > MAC Learning Limit Authentication > Enable.

In the Max Learned MAC Addresses field, specify the maximum number of MAC addresses that the port is allowed to learn. Configure this value based on the maximum number of devices that are expected to connect through the port.

Expand Advanced Settings, enable MAC Learning Limit Authentication, configure the maximum learned MAC addresses, select a Learn Address Mode, and save the Port Profile.

Next, select a Learn Address Mode to define how learned MAC addresses are retained and removed.

Learn Address Mode

Description

Delete on Timeout (Default)

The switch removes MAC addresses that are not used or updated within the aging time.

Delete on Reboot

Learned MAC addresses are not affected by aging time and can only be removed manually. All learned MAC addresses are cleared after the switch reboots.

Permanent

Learned MAC addresses are not affected by aging time and can only be removed manually. Learned MAC addresses remain after the switch reboots.

Sticky

Learned MAC addresses are not affected by aging time and can only be removed manually. The switch periodically saves learned MAC addresses. After a reboot, saved MAC addresses are retained while unsaved MAC addresses are removed.

Finally, click Save to apply the Port Profile.

Note:

  • MAC Learning Limit Authentication cannot be used together with 802.1X Authentication or MAC-Based Authentication (MAB) on the same port. If a port is already configured with 802.1X or MAB, MAC Learning Limit Authentication cannot be enabled. Likewise, enabling MAC Learning Limit Authentication prevents 802.1X or MAB from being configured on that port.
  • MAC Learning Limit Authentication is also incompatible with Link Aggregation (LAG). A port with MAC Learning Limit Authentication enabled cannot be added to a LAG group, and MAC Learning Limit Authentication cannot be configured on ports that are members of a LAG group.

Step 2. Apply the Port Profile to the Target Switch Port.

Apply the Port Profile to the target switch port as described in Step 4 of the LLDP Authentication section.

Conclusion

Port Security provides two authentication methods to enhance switch port security and control network access.

LLDP Authentication allows only devices with matching LLDP information to communicate through a port, while MAC Learning Limit Authentication restricts the number of MAC addresses that can be learned on a port. By applying these settings through Port Profiles, administrators can efficiently deploy consistent access control policies across multiple switch ports.

To learn more about each function and configuration, please visit Support Home to download or check the manual for your product.

Please Rate this Document

Related Documents