The dot1x port-method command sets the 802.1X access control method of an interface.
The undo dot1x port-method command sets the default 802.1X access control method of an interface.
By default, 802.1X access control on an interface is based on MAC addresses.
In the system view:
dot1x port-method { mac | port } interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
undo dot1x port-method interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
In the interface view:
dot1x port-method { mac | port }
undo dot1x port-method
Parameter |
Description |
Value |
---|---|---|
mac |
Indicates that users are authenticated based on their MAC addresses. |
- |
port |
Indicates that users are authenticated based on their access interfaces. |
- |
interface { interface-type interface-number1 [ to interface-number2 ] } |
Indicates 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
802.1X access control can be based on MAC addresses or interfaces.
Prerequisites
802.1X authentication has been enabled globally and on an interface using the dot1x enable command.
Precautions
When there are online 802.1X users on an interface, do not run the dot1x port-method command to change the access control method on the interface.
If the access control method of an interface is set to port, only one 802.1X users can access the interface. After you run the undo dot1x port-method command, MAC address-based access control is enabled, but still only one user can access the interface. You can run the dot1x max-user command to increase the maximum number of 802.1X users as required.
# Set the 802.1X access control method on GE0/0/1 in the system view to port.
<HUAWEI> system-view [HUAWEI] dot1x port-method port interface gigabitethernet 0/0/1
# Set the 802.1X access control method on GE0/0/1 in the interface view to port.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] dot1x port-method port