Enabling port security traps
You can configure the port security module to send traps for the following categories of events:
addresslearned—Learning of new MAC addresses.
dot1xlogfailure/dot1xlogon/dot1xlogoff—802.1X authentication failure, success, and 802.1X user logoff.
ralmlogfailure/ralmlogon/ralmlogoff—MAC authentication failure, MAC authentication user logon, and MAC authentication user logoff.
intrusion—Detection of illegal frames.
To enable port security traps:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable port security traps. | port-security trap { addresslearned | dot1xlogfailure | dot1xlogoff | dot1xlogon | intrusion | ralmlogfailure | ralmlogoff | ralmlogon } | By default, port security traps are disabled. |