Setting the port authorization state
About port authorization states
The port authorization state determines whether the client is granted access to the network. You can control the following authorization states of a port:
Authorized—Places the port in the authorized state, enabling users on the port to access the network without authentication.
Unauthorized—Places the port in the unauthorized state, denying any access requests from users on the port.
Auto—Places the port initially in unauthorized state to allow only EAPOL packets to pass. After a user passes authentication, sets the port in the authorized state to allow access to the network. You can use this option in most scenarios.
Procedure
Enter system view.
system-view
Enter interface view.
interface interface-type interface-number
Set the port authorization state.
dot1x port-control { authorized-force | auto | unauthorized-force }
By default, the auto state applies.