04-23-2015 04:05 AM - edited 03-07-2019 11:41 PM
Hi,
What is meant by "Static" and "Dynamic" entries in the mac address table of a Cisco 2960 switch when I issue the command-
"Show mac address table"?
Has this something got to do with port security command , but I have not configured any static mac address under the interfaces.
The sho ru interface & sh mac address table of one of the switch is attached for your reference.
Solved! Go to Solution.
04-23-2015 04:55 AM
Dynamic means the switch learnt the MAC address via dynamic MAC learning. The switch will auto-learn the MAC address associated with a port when it receives layer 2 frames from the machines on a particular switchport. The source MAC address of the frame will be added to the MAC table. The MAC address will be mapped to respective VLAN and the switchport in the MAC address table.
Switch>sh mac address-table | i DY
300 001e.a239.12e3 DYNAMIC Gi1/0/9
300 001e.a239.37eb DYNAMIC Gi1/0/10
300 001e.a239.3b27 DYNAMIC Gi1/0/10
300 001e.a239.3b42 DYNAMIC Gi1/0/9
300 001e.a239.3d3a DYNAMIC Gi1/0/4
Static means the MAC address has been statically added to MAC address table. For example:
switch# configure terminal switch(config)# mac-address-table static 12ab.47dd.ff89 vlan 3 interface ethernet 2/1
04-23-2015 04:55 AM
Dynamic means the switch learnt the MAC address via dynamic MAC learning. The switch will auto-learn the MAC address associated with a port when it receives layer 2 frames from the machines on a particular switchport. The source MAC address of the frame will be added to the MAC table. The MAC address will be mapped to respective VLAN and the switchport in the MAC address table.
Switch>sh mac address-table | i DY
300 001e.a239.12e3 DYNAMIC Gi1/0/9
300 001e.a239.37eb DYNAMIC Gi1/0/10
300 001e.a239.3b27 DYNAMIC Gi1/0/10
300 001e.a239.3b42 DYNAMIC Gi1/0/9
300 001e.a239.3d3a DYNAMIC Gi1/0/4
Static means the MAC address has been statically added to MAC address table. For example:
switch# configure terminal switch(config)# mac-address-table static 12ab.47dd.ff89 vlan 3 interface ethernet 2/1
04-23-2015 09:04 PM
But we have not put any static address command in our switches. Can port security be the reason for mac address showing as static??
Has this something got to do with port security command , but I have not configured any static mac address under the interfaces.
The sho ru interface & sh mac address table of one of the switch is attached for your reference.
04-30-2022 01:30 AM - edited 04-30-2022 01:34 AM
I have exactly the same issue...
Any ideas?
10-25-2023 01:37 AM
Static means not only statically added mac addresses but also directly connected devices on the switch you are connected to, e.g. via ssh.
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