Check the configuration and find that when the port is enabled with 802.1x authentication:
Interface GigabitEthernet2/0/5
Port link-type trunk
Port trunk pvid vlan 20
Port trunk allow-pass vlan 20
Authentication-profile dot1x
#
Authentication-profile dot1x
Info: To authorize VLANs for users, ensure that the interface type is hybrid.
Root cause
Link type configuration error
Solution
Change the port link type to hybrid
Suggestions and conclusions
In the unified mode and the traditional mode, 802.1x and mac authentication are configured. If the link type of the port is incorrect, there is a prompt. Need to be modified to hybrid or trunk type.