Disable dynamic mac address learning7/21/2023 ![]() ![]() There are a bunch of caveats with this feature, however. WA-3448-SW03(config)#do sh mac address-table learning This might be done if you have a VLAN that you only want to have static entries: SW03(config)#no mac address-table learning vlan 147 The last thing I wanted to demonstrate in this section is how to disable MAC address learning on a particular VLAN. We can also configure the switch to drop any frames to a particular MAC address: SW03(config)#mac address-table static vlan 100 drop SW03(config)#do sh mac address-table static | i Leaving dynamic MAC addresses behind for a moment, we can set static MAC addresses as follows: SW03(config)#mac address-table static vlan 100 int gi1/0/1 We can do this for the entire table or for a specific VLAN. We can disable the aging time, or set it to a value between 10-1000000 seconds. SW03(config)#mac address-table aging-time 1000 ? This can be done as follows: SW03(config)#mac address-table aging-time ? We could also just clear all the dynamically learned MAC addresses.Īnother option is to change the aging-time. This removes MAC addresses, and we can specify an address or interface that we want to clear. We can either do it manually: SW03#clear mac address-table dynamic ? What if we want to remove mac addresses before then? We have a couple of options. We can verify: SW03#show mac address-table aging-time How long does this info stay in the table? The default aging time is 300 seconds. We can see the information stored in the table: VLAN, MAC, Type, Port. We can list all of the dynamically learned MAC addresses here: SW03#show mac address-table dynamic Vlan List MAC addresses on a specific vlan Notification MAC notification parameters and history table Learning Display learning on VLAN or interface Interface List MAC adresses on a specific interface SW03#show mac address-table ?Īging-time MAC address table aging parametersĬount Number of MAC addresses in the table There are a number of options we can use to get the output we desire. Let’s first just look at the verification of the MAC address table. This post is going to be geared towards the lab, so commands and output. I’ll put some links at the end for further reading. ![]() Note – This post won’t be going deep into theory. This post is going to go over the following CCIE Enterprise Infrastructure topics:
0 Comments
Leave a Reply. |