cisco — Adding and Removing Static Address Entries

• It is recommended that you disable MAC address learning only in VLANs with two ports. If you disable MAC address learning on a VLAN with more than two ports, every packet entering the switch is flooded in that VLAN domain. • If you disable MAC address learning on a VLAN that includes a secure port, MAC address learning is not disabled on that port. Procedure Adding and Removing Static Address Entries Follow these steps to add a static address: Administering the Device Adding and Removing Static Address Entries Command or Action Purpose Step 1 configure terminal Example: Device# configure terminal Enters the global configuration mode.

Step 2 no mac-address-table learning vlan[vlan-id |,vlan-id | -vlan-id,] Example: Device(config)# no mac-address-table learning {vlan vlan-id [,vlan-id | -vlan-id] Disable MAC address learning on a specified VLAN or VLANs. You can specify a single VLAN ID or a range of VLAN IDs separated by a hyphen or comma. Valid VLAN IDs range from 2 - 4094. It cannot be an internal VLAN. Step 3 end Example: Device(config)# end Returns to privileged EXEC mode. Step 4 show mac-address-table learning vlan[vlan-id ] Example: Device# show mac-address-table learning [vlan vlan-id] Verify the configuration.

You can display the MAC address learning status of all VLANs or a specified VLAN by entering the show mac-address-table learning [vlan vlan-id] privileged EXEC command. Step 5 copy running-config startup-config Example: Device# copy running-config startup-config (Optional) Save your entries in the configuration file. Step 6 default mac address-table learning Example: Device# default mac address-table (Optional) Reenable MAC address learning on VLAN in a global configuration mode. Administering the Device 33