You can configure this device such that SNMP trap messaging is enabled globally or per port to send notifications, when a new MAC address is first detected, or a preexisting MAC address is moved.
Use the set newaddrtrap command in any command mode to enable SNMP trap messaging to report the detection of a new MAC address for the affected ports. Enabling SNMP trap messaging to report the detection of a new MAC address must be enabled globally and enabled on the affected ports as two separate CLI entries. The new MAC address trap feature is disabled by default.
The following example configures SNMP trap messaging to send a notification when a new MAC address is detected on port ge.1.1:
System(rw)->set newaddrtrap enable System(rw)->set newaddrtrap ge.1.1 enable
Use the set movedaddrtrap command in any command mode to enable SNMP trap messaging to report detection of a moved MAC address for the affected ports. Enabling SNMP trap messaging to report detection of a moved MAC address must be enabled globally and on the affected ports as two separate CLI entries. The moved MAC address trap feature is disabled by default.
The following example configures SNMP trap messaging to send a notification when a moved MAC address is detected on port ge.1.1:
System(rw)->set movedaddrtrap enable System(rw)->set movedaddrtrap ge.1.1 enable
Configuring MAC Address Settings describes how to configure MAC address settings. All commands for this feature can be set in any command mode.
Step | Task | Command(s) |
---|---|---|
1 | Optionally, change the age time for MAC addresses FID entries for this device. | set mac agetime time |
2 | Optionally, limit a multicast MAC address to a specific port within a VLAN. | set mac multicast mac-address vlan-id [port-string] {append | clear} |
3 | Optionally, enter a static unicast MAC address into the FID. | set mac unicast mac-address fid receive-port [ageable] |
4 | Optionally, enable unicast MAC addresses to be treated as multicast MAC addresses on this device. | set mac unicast-as-multicast {enable | disable} |
5 | Optionally, set the maximum number of MAC entries allowed on the device (S-Series). | set mac max-entries {64K | 128K} |
6 | Optionally, enable SNMP trap messaging to report the detection of new MAC addresses for the specified port by first globally enabling the feature, followed by enabling the affected ports. | set newaddrtrap {enable | disable} (Global) set newaddrtrap port-string {enable | disable} (Port) |
7 | Optionally, enable SNMP trap messaging to report the detection of a moved MAC address for the specified port by first globally enabling the feature, followed by enabling the affected ports. | set movedaddrtrap {enable | disable} (Global) set movedaddrtrap port-string {enable | disable} (Port) |