The authentication mac-move enable command enables MAC address migration.
The undo authentication mac-move enable command disables MAC address migration.
By default, MAC address migration is disabled.
authentication mac-move enable vlan { all | { vlan-id1 [ to vlan-id2 ] } & <1–10> }
undo authentication mac-move enable vlan { all | { vlan-id1 [ to vlan-id2 ] } & <1–10> }
Parameter |
Description |
Value |
---|---|---|
vlan | Specifies the VLAN range for enabling MAC address migration. | - |
all | Enables MAC address migration in all VLANs. | - |
vlan-id1 [ to vlan-id2 ] | Enables MAC address migration in the specified VLANs.
|
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
After a user is authenticated and accesses the network from one interface of the device, the network cable is pulled out from the interface and plugged in another interface on the device. In this case, the user cannot immediately initiate authentication and access the network. The user can initiate authentication on the current interface only after the user offline detection interval expires or the authentication interface is manually enabled and shut down to clear user online entries. To improve user experience, MAC address migration is enabled so that the user can immediately initiate authentication and access the network after be switched to another access interface.
MAC address migration allows online NAC authentication users to immediately initiate authentication and access the network after they are switched to other access interfaces. If the user is authenticated successfully on the new interface, the online user entry on the original interface is deleted immediately to ensure that only one interface records the online user entry.
In addition, VLANs need to be specified for users in MAC address migration. The VLANs before and after the migration can be specified for the users, and they can be the same or different.
Precautions
In normal case, enabling MAC address migration is not recommended. It should be enabled only when users have migration requirements during roaming. This prevents unauthorized users from forging MAC addresses of online users and sending ARP, 802.1X, or DHCP packets on other authentication control interfaces to trigger the MAC address migration function and force authorized user offline.