05-01-2020 08:59 AM
Hi everyone, I've seen the different features that the switch uses to learn mac addresses. Specifically, it dynamically learns them and when a device is disconnected from that port it is lost after a certain time. If instead I configure sticky secure mac from what I understand dynamically learns the mac of the device and saves it in running config. Subsequently, if I save it in startup config, at restart will only that mac address be authorized to send frames? That is, if the functionality is still active, I disconnect that device and connect another on that same interface. Does the switch recognize a violation on the interface?
Solved! Go to Solution.
05-01-2020 10:14 AM - edited 05-01-2020 10:15 AM
If your switch is configured with the maximum number of allowable MAC addresses = 1 on the respective, when you disconnect MAC A and connect MAC B, there will be a security violation since the maximum number of secure MAC addresses has been added to the address table (1 MAC = MAC A) and a new device (MAC B) whose MAC address is not in the address table attempts to access the interface.
Based on the configuration present on the switch, one of the following actions will be taken:
switchport port-security violation restrict — port security violation restricts data, causes the SecurityViolation counter to increment, and causes an SNMP Notification to be generated.
switchport port-security violation shutdown — port security violation causes the interface to shut down immediately. (default config)
Hope it helps,
Sergiu
05-01-2020 09:11 AM
switchport port-security maximum max-addr [ vlan vlan-ID ]
max-addr defines the number of mac address allowed to learn. If max-addr is 1 and a different mac-addr is connected .. action defined in switchport port-security violation { protect | restrict | shutdown } is taken.
05-01-2020 09:51 AM
05-01-2020 10:14 AM - edited 05-01-2020 10:15 AM
If your switch is configured with the maximum number of allowable MAC addresses = 1 on the respective, when you disconnect MAC A and connect MAC B, there will be a security violation since the maximum number of secure MAC addresses has been added to the address table (1 MAC = MAC A) and a new device (MAC B) whose MAC address is not in the address table attempts to access the interface.
Based on the configuration present on the switch, one of the following actions will be taken:
switchport port-security violation restrict — port security violation restricts data, causes the SecurityViolation counter to increment, and causes an SNMP Notification to be generated.
switchport port-security violation shutdown — port security violation causes the interface to shut down immediately. (default config)
Hope it helps,
Sergiu
05-01-2020 10:21 AM
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