2-14
Configuring 802.1X for a Port
Enabling 802.1X for a port
Follow these steps to enable 802.1X for a port:
To do… Use the command… Remarks
Enter system view system-view —
In system view dot1x interface interface-list
interface interface-type
interface-number
Enable
802.1X for
one or more
ports
In Ethernet
interface view
dot1x
Required
Use either approach.
Disabled by default
Configuring 802.1X parameters for a port
Follow these steps to configure 802.1X parameters for a port:
To do… Use the command… Remarks
Enter system view system-view —
Enter Ethernet interface view
interface interface-type
interface-number
—
Set the port access control
mode for the port
dot1x port-control
{ authorized-force | auto |
unauthorized-force }
Optional
auto by default
Set the port access control
method for the port
dot1x port-method
{ macbased | portbased }
Optional
macbased by default
Set the maximum number of
users for the port
dot1x max-user user-number
Optional
256 by default
Enable online user handshake dot1x handshake
Optional
Enabled by default
Enable the online handshake
security function
dot1x handshake secure
Optional
Disabled by default
Enable multicast trigger dot1x multicast-trigger
Optional
Enabled by default
Enable periodic
re-authentication
dot1x re-authenticate
Required
Disabled by default
Specify the mandatory
authentication domain for the
port
dot1x mandatory-domain
domain-name
Optional
No mandatory authentication
domain is specified by default.
Note that:
z Enabling 802.1X on a port is mutually exclusive with adding the port to an aggregation group.
z In EAP relay authentication mode, the device encapsulates the 802.1X user information in the
EAP attributes of RADIUS packets and sends the packets to the RADIUS server for authentication.
In this case, you can configure the user-name-format command but it does not take effect. For