Cisco switches wired 802.1x VLAN assignment

Configure Cisco switches to use 802.1x for wired connections

Uses MAC auth bypass

radius server ServerName
address ipv4 <ip> auth-port 1812
key <key>
!
aaa new-model
aaa authentication dot1x default group radius
aaa authorization exec default if-authenticated
aaa authorization network default if-authenticated
dot1x system-auth-control

interface GigabitEthernet1/0/2
 switchport access vlan 10
 switchport mode access
 authentication port-control auto
 mab
 dot1x pae authenticator
!