Topo
ClearPass acts as the RADIUS server. Users perform 802.1X EAP authentication and phones perform MAC authentication.
When enable only MAC authentication, the phone performs MAC authentication and is placed in VLAN 21 (tagged) and works well.
When enable only dot1x authentication, the PC performs dot1x authentication (machine authentication) and is place in VLAN 1 (untagged) and works well.
When I enable dot1x and MAC authentication at the same time,sometimes the PC works well and the phone doesn"t,Sometimes the phone works well but the PC doesn"t.
The phone in vlan 21 need do mac auth ,PC in vlan 1 should do dot1x auth.
interface GigabitEthernet1/0/4When enabled dot1x and MAC authentication at the
same time:
For phenomen 1,we can only see the phone mac auth stated changed,and .
Sep 5 12:16:03:319 2023 SW1-H3C-CPD MACA/7/EVENT: State changed from Authenticated to Disconnect: UserMAC=001a-e85b-2500, VLANID=21, Interface=GigabitEthernet1/0/4.By default, when a port receives a packet with an unknown source MAC address that triggers authentication, it processes it in the order of completing 802.1X and then performing MAC address authentication.
Therefore, in phenomenon 1, the phone will perform dot1x authentication.When a port receives a packet with an unknown source MAC address, it will unicast an EAP-Request frame to the MAC address to trigger 802.1X authentication, but it will also perform MAC address authentication without waiting for the 802.1X authentication process to be completed.
The configuration commands are as follows:
[H3C-GigabitEthernet1/0/4] mac-authentication parallel-with-dot1x
For Phenomenon 2, the phone and PC are authenticated and authorized in different vlans. The mac vlan function needs to be enabled under the interface.When the authorized VLAN does not carry a tag, only ports with the MAC VLAN function enabled can authorize different VLANs to different users" MAC addresses. If the MAC VLAN function is not enabled, the VLAN authorized to all users must be the same, otherwise only the first authenticated user can successfully go online.
The configuration commands are as follows:
[H3C-GigabitEthernet1/0/4] mac-vlan enable