03-06-2021 02:21 AM
Hello Community,
I have question why a MAC address become static.
My labor environment looks like this: C9200 (VLAN-1, access-port) <-> unmanaged Netgear switch
When a device is connected through the Netgear, the MAC address of this device will be stored as static on the c9200 switch.I am a bit confused why this happens?
03-06-2021 03:29 AM
port-security is config in SW?
03-06-2021 04:11 AM
Yes, on c9200 I have enabled port-security.
How does port-security influenced the port state from dynamic/static?
03-06-2021 04:27 AM
""One interesting thing that you may notice here is the type. Switch learns this address dynamically but it is showing as STATIC. This is the magic of sticky option, which we used with port security command. Sticky option automatically converts dynamically learned address in static address.""
03-06-2021 05:35 AM
I understand that, but when I add a enddevice like a PC to a port-security access port, the mac address-table shows them as dynamic and a non-managed switch got a static mac-address?
03-06-2021 05:45 AM
PC will learn dynamically to port-security mac-address table,
this PC will add as static to mac address table.
which point you don't get it ? port-security mac address or mac address table?
03-06-2021 09:19 AM
I don´t understand why under mac address-table a PC is shown as dynamic and a non managed switch is static. I tested that on two ports with the same switchport configuration.
03-06-2021 09:53 AM
But your first post is different that why I confuse
you mention that the PC is connect to non-manamgent SW
and
it appear static on c9200 "which run port-security "? am I right ?
03-06-2021 10:04 AM
Maybe a example will help.
Switchport always configured like this:
interface Gi 1/0/1 switchport mode access switchport port-security switchport port-security maximum 10 ...
When a PC is connected, mac address table shows them as dynamic
When a non managed switch is connected, mac address table shows them as static
03-06-2021 10:08 AM
Can you post mac address-table output.
03-06-2021 10:19 AM
are you config any sticky port-secuiry before the connect to nonmangemnt SW?
03-06-2021 10:24 AM - edited 03-06-2021 07:18 PM
what I think is one note from cisco,
"if you config sticky port-security all mac address that dynamic BEFORE will convert to static."
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