< Home

mac-authen max-user

Function

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.

Format

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 ]

Parameters

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.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

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

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >