Managing MAC Address Table
Security Configurations
Configuration Guide
145
Now you have configured MAC notification traps. To receive notifications, you need to
further enable SNMP and set a management host. For detailed SNMP configurations,
please refer to
.
The following example shows how to enable new-MAC-learned trap on port 1, and set the
interval time as 10 seconds. After you have further configured SNMP, the switch will bundle
notifications of new addresses in every 10 seconds and send to the management host.
Switch#configure
Switch(config)#mac address-table notification global-status
enable
Switch(config)#mac address-table notification interval
10
Switch(config)#interface gigabitEthernet
1/0/1
Switch(config-if)#mac address-table notification new-mac-learned
enable
Switch(config-if)#show mac address-table notification interface gigabitEthernet
1/0/1
Mac Notification Global Config
Notification Global Status : enable
Table Full Notification Status: disable
Notification Interval : 10
Port LrnMode Change Exceed Max Limit New Mac Learned
---- -------------- ----------------
----------------
Gi1/0/1 disable
disable enable
Switch(config-if)#end
Switch#copy running-config startup-config
3.2.2 Limiting the Number of MAC Addresses in VLANs
Follow these steps to limit the number of MAC addresses in VLANs:
Step 1
configure
Enter global configuration mode.