8-1
8 MAC Information Configuration Commands
Currently, MAC Information applies to only Layer 2 Ethernet interfaces.
MAC Information Configuration Commands
mac-address information enable (Ethernet interface view)
Syntax
mac-address information enable { added | deleted }
undo mac-address information enable { added | deleted }
View
Layer 2 Ethernet interface view
Default Level
1: Monitor level
Parameters
added: Enables the device to record security information when a new MAC address is learned on the
Ethernet port.
deleted: Enables the device to record security information when an existing MAC address is deleted.
Description
Use the mac-address information enable command to enable MAC Information on the Layer 2
Ethernet interface.
Use the undo mac-address information enable command to disable MAC Information on the Layer
2 Ethernet interface.
By default, MAC Information is disabled on a Layer 2 Ethernet interface.
Note that:
This command is not supported on aggregate interfaces.
To enable MAC Information on an Ethernet interface, enable MAC Information globally first.
Examples
# Enable MAC Information on GigabitEthernet2/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet2/0/1
[Sysname-GigabitEthernet2/0/1] mac-address information enable added