cisco — Enabling MAC Replace

Beginning in privileged EXEC mode, follow these steps to enable MAC replace on an interface. This procedure is optional. Procedure Configuring IEEE 802.1x Port-Based Authentication Enabling MAC Replace Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 interface interface-id Example: Devic(config)# interface gigabitethernet2/0/2 Specifies the port to be configured, and enters interface configuration mode. Step 4 authentication violation {protect | replace | restrict | shutdown} Example:

Device(config-if)# authentication violation replace Use the replace keyword to enable MAC replace on the interface. The port removes the current session and initiates authentication with the new host. The other keywords have these effects: • protect: the port drops packets with unexpected MAC addresses without generating a system message. • restrict: violating packets are dropped by the CPU and a system message is generated. • shutdown: the port is error disabled when it receives an unexpected MAC address. Step 5 end Example: Device(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Configuring IEEE 802.1x Port-Based Authentication 48