

This command statically defines the MAC address of 00c0.35F0.8301 as an allowed host on the switch port. An enable mode command that merges the startup config with the currently active config in RAM. The following command secures a switch by manually defining an allowed MAC address: switch(config-if)# switchport port-security mac-address 00C0.35F0.8301 An enable mode command that saves the active config, replacing the startup config when a Cisco network device initializes. The static MAC entries will be retained even after the switch is restarted. To display the MAC address table, use the show mac-address-table command in privileged EXEC mode. Switch ports can be secured by defining one or more specific MAC addresses that should be allowed to connect, and by defining violation policies (such as disabling the port) if additional hosts try to gain a connection. Although Cisco switches dynamically build the MAC address table by using the source MAC address of the received frames, you can also manually add a MAC address to the switch’s MAC address table. Switch(config) interface fa0/1 Switch(config-if) switchport port-security mac-address Use the switchport port-security mac-address command to define the MAC address that you want to allow. I know the show neighbor detail for other cisco devices. This is not the MAC address of my computer so it’s perfect to demonstrate a violation. By default, an unlimited number of MAC addresses can be learned on a single switch port, whether it is configured as an access port or a trunk port. I am looking for a cisco command to display devices on the switch by IP address. Switches dynamically build MAC address tables in RAM, which allow the switch to forward incoming frames to the correct target port. Once the approved MAC addresses have all been learned, the network administrator simply saves the running-configuration file to NVRAM with the copy running-config startup-config command.


Issuing the switchport port-security mac-address sticky command will allow a switch to save a dynamically learned MAC address in the running-configuration of the switch, which prevents the administrator from having to document or configure specific MAC addresses.
