interval value :Interval of generating
the MAC address change notification
(optional), in the range of 1 to 3600
seconds, 1 second by default.
history-size value: Maximum number
of the records in the MAC notification
history list, in the range of 1 to 200, 50
by default.
Enable the MAC address change
notification on the interface.
added: Send a MAC address change
notification when a MAC address is
added on this interface.
Removed: Send a MAC address
change notification when a address is
deleted.
To disable the MAC address change notification function, use the no
snmp-server enable traps command in the global configuration mode. To turn
off the global switch of the MAC address change notification function, use the
no mac-address-table notification command. To disable the MAC address
change notification funciton on a specified interface, use the no snmp trap
mac-notification {added | removed} command in the interface configuration
mode.
This example shows how to enable the MAC address change notification
funciton, use public as the authentication name to send a MAC address change
notification to the NMS whose IP address is 192.168.12.54 at the interval of 40
seconds, set the size of the MAC address change history list to 100, and enable
the MAC address change notification funciton on gigabitethernet 0/1 when a
MAC address is added or removed.
Ruijie(config)# snmp-server host 192.168.12.54 traps public
Ruijie(config)# snmp-server enable traps
Ruijie(config)# mac-address-table notification
Ruijie(config)# mac-address-table notification interval 40
Ruijie(config)# mac-address-table notification history-size 100
Ruijie(config)# interface gigabitethernet 0/1
Ruijie(config-if)# snmp trap mac-notification added
Ruijie(config-if)# snmp trap mac-notification removed
Viewing the MAC Address change Notification Information
In the privileged mode, you can view the information on the MAC address table
of the device by using the commands listed in the following table: