cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
149
Views
2
Helpful
3
Replies

Is there a way to log the MAC connected to a port on a Catalyst?

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!

2 Accepted Solutions

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

 

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

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-9/configuration_guide/sys_mgmt/b_179_sys_mgmt_9300_cg/administering_the_device.html#task_trt_lqx_n1b

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

 

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

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-9/configuration_guide/sys_mgmt/b_179_sys_mgmt_9300_cg/administering_the_device.html#task_trt_lqx_n1b

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking products for a $25 gift card