The mac-authen max-user command sets the maximum number of MAC address authentication users on an interface.
The undo mac-authen max-user command restores the default value of the maximum number of MAC address authentication users on an interface.
By default, the number of MAC address authentication users is the maximum number of MAC address authentication users supported by the device.
In the system view:
mac-authen max-user user-number interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
undo mac-authen max-user [ user-number ] interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
In the interface view:
mac-authen max-user user-number
undo mac-authen max-user [ user-number ]
Parameter |
Description |
Value |
---|---|---|
user-number |
Specifies the maximum number of MAC address authentication users on an interface. |
The value is an integer that varies depending on the product model. |
interface { interface-type interface-number1 [ to interface-number2 ] } |
Specifies the interface type and number.
|
- |
System view, Ethernet interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Port group view
Usage Scenario
To limit the number of MAC address authentication users on an interface, run the mac-authen max-user command. When the number of access users on an interface reaches the limit, the device will not trigger authentication for the users newly connected to the interface; therefore, these users cannot access the network.
Prerequisites
MAC address authentication has been enabled globally and on an interface using the mac-authen command.
# Set the maximum number of MAC address authentication users on GE0/0/1 to 8 in the system view.
<HUAWEI> system-view [HUAWEI] mac-authen max-user 8 interface gigabitethernet 0/0/1
# Set the maximum number of MAC address authentication users on GE0/0/1 to 8 in the interface view.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] mac-authen max-user 8