cisco — MAC Replace

There are situations where a MAC address might need to move from one port to another on the same switch. For example, when there is another device (for example a hub or an IP phone) between an authenticated host and a switch port, you might want to disconnect the host from the device and connect it directly to another port on the same switch. You can globally enable MAC move so the device is reauthenticated on the new port. When a host moves to a second port, the session on the first port is deleted, and the host is reauthenticated on the new port. MAC move is supported on all host modes.

(The authenticated host can move to any port on the switch, no matter which host mode is enabled on that port.) When a MAC address moves from one port to another, the switch terminates the authenticated session on the original port and initiates a new authentication sequence on the new port. The MAC move feature applies to both voice and data hosts. Note In open authentication mode, a MAC address is immediately moved from the original port to the new port, with no requirement for authorization on the new port. MAC move with port security is not supported. MAC move from an authentication manager-enabled port to an authentication manager-disabled port on a device is enabled by default.

For this to work, MAC move must be enabled globally, that is, the authentication mac-move permit command must be configured in legacy mode, or, the no access-session mac-move deny command must be configured in IBNS 2.0. When MAC move is disabled globally, MAC move is denied. To disable MAC move from an authentication manager-enabled port to an authentication manager-disabled port on a device, use the authentication mac-move deny-uncontrolled command. MAC Replace The MAC Replace feature can be configured to address the violation that occurs when a host attempts to connect to a port where another host was previously authenticated.

This feature does not apply to ports in multi-auth mode, because violations are not triggered in that mode. It does not apply to ports in multiple host mode, because in that mode, only the first host requires authentication. Note If you configure the authentication violation interface configuration command with the replace keyword, the authentication process on a port in multidomain mode is: • A new MAC address is received on a port with an existing authenticated MAC address. • The authentication manager replaces the MAC address of the current data host on the port with the new MAC address. • The authentication manager initiates the authentication process for the new MAC address.

• If the authentication manager determines that the new host is a voice host, the original voice host is removed. If a port is in open authentication mode, any new MAC address is immediately added to the MAC address table. Configuring IEEE 802.1x Port-Based Authentication MAC Replace Configuring IEEE 802.1x Port-Based Authentication 10