04-25-2024 09:49 PM
hi!
I am curious as to whether the requirements requested by the customer will be supported by the Catalyst Switch.
The requirement is that when the H.H.H PC is connected to the Catalyst Switch port A, a history of the H.H.H MAC connection to the A port can be left through switch log or syslog.
I had no idea what function to search for in the Cisco feature navigator.
Thanks!
Solved! Go to Solution.
04-25-2024 11:11 PM
If the customer have any tools like Prime/ DNAC/ ISE you can get all the information.
other wise customer need to co-related using scripts.
Global
========
mac address-table notification change
SNMP TRAP
=========
snmp-server enable traps mac-notification
snmp-server host 10.10.10.100 mac-notification
Interface Level
================
interface gig 1/0/1
snmp trap mac-notification change added
snmp trap mac-notification change removed
More information can be find here :
If you need more information regarding the MAC moving :
SNMP trap mac-notification {added | removed}
enable the MAC address notification trap.
- Enable the MAC notification trap whenever a MAC address is added on this interface.
- Enable the MAC notification trap whenever a MAC address is removed from this interface.
other reference :
https://www.cisco.com/c/en/us/td/docs/ios/lanswitch/command/reference/lsw_book/lsw_m1.html
04-29-2024 11:48 PM
try adding community string :
snmp-server host host-addr community-string notification-type { informs | traps } {version {1 | 2c | 3}} {vrf vrf instance name}
snmp-server host
172.20.10.10 traps private mac-notification
04-25-2024 11:11 PM
If the customer have any tools like Prime/ DNAC/ ISE you can get all the information.
other wise customer need to co-related using scripts.
Global
========
mac address-table notification change
SNMP TRAP
=========
snmp-server enable traps mac-notification
snmp-server host 10.10.10.100 mac-notification
Interface Level
================
interface gig 1/0/1
snmp trap mac-notification change added
snmp trap mac-notification change removed
More information can be find here :
If you need more information regarding the MAC moving :
SNMP trap mac-notification {added | removed}
enable the MAC address notification trap.
- Enable the MAC notification trap whenever a MAC address is added on this interface.
- Enable the MAC notification trap whenever a MAC address is removed from this interface.
other reference :
https://www.cisco.com/c/en/us/td/docs/ios/lanswitch/command/reference/lsw_book/lsw_m1.html
04-28-2024 06:40 PM
Hi, balaji.bandi
I think I can address almost everything in this answer.
But I have one question.
C9200L-48T / 17.03.05
C9300L-48P / 17.09.05
I checked the command in two versions.
The "snmp-server host 10.10.10.100 mac-notification" Command could not be found.
Can I send a trap without the above command?
Or is it the same if I replace it with "snmp-server host 10.10.10.10 traps version 2c 0 community-string", which can be entered in those versions?
thank you
04-29-2024 11:48 PM
try adding community string :
snmp-server host host-addr community-string notification-type { informs | traps } {version {1 | 2c | 3}} {vrf vrf instance name}
snmp-server host
172.20.10.10 traps private mac-notification
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide