mac-security limit-learning

Limit MAC address learning to limit the number of forwarding database entries to protect the FDB.

Syntax

Command Parameters

enable
Limits the MAC learning for the port.
limit-learning max-addrs <1-64000>
Specifies the maximum number of MAC addresses to learn. The default is 1024.
port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}

Identifies the slot and port in one of the following formats:

  • a single slot and port (slot/port)

  • a range of slots and ports (slot/port-slot/port)

  • a series of slots and ports (slot/port,slot/port,slot/port)

  • all ports on the same slot (slot/all)

  • all ports on the switch (all)

If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

Default

None

Command Mode

GigabitEthernet Interface Configuration

Usage Guidelines

This command does not apply to all hardware platforms. For more information about feature support, see Fabric Engine and VOSS Feature Matrix.