mac-notify traps
mac-notify traps {aged | learned | moved | removed}
no mac-notify traps {aged | learned | moved | removed}
Description
Configures a Layer 2 interface to generate SNMP trap notifications for up to four different types of dynamic MAC address related events on the trunk or access in physical or lag interfaces.
Thenoform of this command removes the traps from the interface.
Parameter |
Description |
---|---|
aged |
当一个MAC地址通知aged out on the interface. |
learned |
当一个MAC地址通知is learned on the interface. |
moved |
当一个MAC地址通知moved from the interface. |
removed |
当一个MAC地址通知is removed from the interface. |
MAC notification trap addition to or removal from an interface can be in any combination, quantity, or order. The addition of existing configured traps or removal of non-configured traps will be accepted and ignored.
The mac-notify feature must be enabled globally for any interface configurations to generate SNMP traps.
MAC notification cannot be configured on a Layer 3 (routing) interface. A Layer 2 interface that is changed to a Layer 3 interface through theroutingcommand will discard any existing MAC notification configurations.
In cases of MACs learned onport-access port-securityenabled ports, the move scenario is handled by the port-access feature through the deletion of the MAC from the old part and installation on the new port. In this scenario, MAC trap notifications, if enabled, will reflect that by producing and notifications.
Usage
The following are the limitation for SNMP MAC notify traps:
- SNMP MAC change notification trap is not supported for VxLAN – Overlay hosts.
- Mac notify trap will not generate for Static MACs.
- vsx-syncis not supported for this feature. Hence, you must enable the MAC notify traps explicitly on secondary to ensure the traps are generated.
Examples
MAC notification types and the associated events only apply to Layer 2 interfaces, hence routing might need to be disabled on the relevant interfaces.
Enabling the traps on an L2 interface:
Disabling thelearnedandremovedtraps from the interface 1/1/1:
Command History
Release |
Modification |
---|---|
10.10 |
Support for port access features with mac-notify added. |
10.08 |
Command introduced |
Command Information
Platforms |
Command context |
Authority |
---|---|---|
All platforms |
config |
Administrators or local user group members with execution rights for this command. Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only. Auditors or Administrators or local user group members with execution rights for this command. Auditors can execute this command from the auditor context (auditor>) only. |