802.1X in loop
Posted: 04 Jun 2025 10:49
Hello
I try to configure 802.1x and MAC with clearpass. I have followed unp tutorial
! AAA:
aaa radius-server "CLEARPASS" host XXX.XXX.XXX hash-key "" hash-salt "" retransmit 3 timeout 10 auth-port 1812 acct-port 1813 vrf-name default
aaa device-authentication mac "CLEARPASS"
aaa device-authentication 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF"
aaa profile "CLEARPASS_AAA_PROF" device-authentication 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF" accounting 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF" 802.1x re-authentication enable
aaa profile "CLEARPASS_AAA_PROF" radius mac-format calling-station-id delimiter none case lowercase
! DA-UNP:
unp dynamic-vlan-configuration
unp dynamic-profile-configuration
unp profile "GENOVA-FULL"
unp profile "GENOVA-USER"
unp profile "GENOVA-GUEST"
unp profile "GENOVA-FULL" map vlan 1
unp profile "GENOVA-USER" map vlan 1
unp profile "GENOVA-GUEST" map vlan 1
unp port 1/1/7-8 port-type bridge
unp port 1/1/7-8 direction both dynamic-service none
unp port 1/1/7-8 admin-state enable
unp port 1/1/7-8 802.1x-authentication
unp port 1/1/7-8 802.1x-authentication failure-policy mac
unp port 1/1/7-8 mac-authentication
MAC auth work as expected but 802.1x not. I can see this behaviour:
-> show unp user details
Port: 1/1/7
MAC-Address: 54:b2:03:85:95:1f
SAP = -,
Service ID = -,
VNID = -,
VPNID = -,
ISID = -,
VPLSID = -,
Access Timestamp = 01/01/1970 00:32:05,
User Name = [*******],
IP-Address = 172.19.52.12,
Vlan = 1,
Authentication Type = 802.1x,
Authentication Status = Authenticated,
Authentication Failure Reason = -,
Authentication Retry Count = 0,
Authentication Server IP Used = 192.168.152.112,
Authentication Server Used = CLEARPASS,
Server Reply-Message = -,
Profile = GENOVA-USER,
Profile Source = Auth - Pass - Server UNP,
Profile From Auth Server = GENOVA-USER,
Session Timeout = 0,
Classification Profile Rule = -,
Role = -,
Role Source = -,
User Role Rule = -,
Restricted Access = No,
Location Policy Status = -,
Time Policy Status = -,
QMR Status = Passed,
Redirect Url = -,
SIP Call Type = Not in a call,
SIP Media Type = None,
Applications = None,
Encap Value = -,
Rule ID = -,
Total users : 1
-> show unp user details
Port: 1/1/7
MAC-Address: 54:b2:03:85:95:1f
SAP = -,
Service ID = -,
VNID = -,
VPNID = -,
ISID = -,
VPLSID = -,
Access Timestamp = ,
User Name = 54:b2:03:85:95:1f,
IP-Address = 172.19.52.12,
Vlan = 1,
Authentication Type = -,
Authentication Status = -,
Authentication Failure Reason = -,
Authentication Retry Count = 0,
Authentication Server IP Used = -,
Authentication Server Used = -,
Server Reply-Message = -,
Profile = -,
Profile Source = -,
Profile From Auth Server = -,
Session Timeout = -,
Classification Profile Rule = -,
Role = -,
Role Source = -,
User Role Rule = -,
Restricted Access = -,
Location Policy Status = -,
Time Policy Status = -,
QMR Status = -,
Redirect Url = -,
SIP Call Type = Not in a call,
SIP Media Type = None,
Applications = None,
Encap Value = -,
Rule ID = -,
Those logs are taken 1sec after each. On my nas I can see access-accept and Filter-id correctly sended but seems and this process repeats 1 sec after 1 sec. The authentication status pass from in progress to to active then in progress again.
My suplicant use EAP-PEAP (without cert) and I use same unp profile for MAC Auth. Realy dont understand why have this kind of loop.
I have also try to create a port template but have broken mac auth and have the same behavior on 802.....
unp port-template "CPPM-PORT-TEMPLATE" redirect-port-bounce direction both aaa-profile "CLEARPASS_AAA_PROF" ap-mode secure admin-state enable
unp port-template "CPPM-PORT-TEMPLATE" 802.1x-authentication
unp port-template "CPPM-PORT-TEMPLATE" 802.1x-authentication failure-policy mac
unp port-template "CPPM-PORT-TEMPLATE" mac-authentication
This sw have 8.10.102.R01 version.
Have also tested radius response:
-> aaa test-radius-server CLEARPASS type authentication user dummyuser password password method pap
Testing Radius Server <192.168.152.112/CLEARPASS>
Access-Accept from 192.168.152.112 Port 1812 Time: 344 ms
Returned Attributes
Filter-ID = GENOVA-FULL
Any ideas ?
I try to configure 802.1x and MAC with clearpass. I have followed unp tutorial
! AAA:
aaa radius-server "CLEARPASS" host XXX.XXX.XXX hash-key "" hash-salt "" retransmit 3 timeout 10 auth-port 1812 acct-port 1813 vrf-name default
aaa device-authentication mac "CLEARPASS"
aaa device-authentication 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF"
aaa profile "CLEARPASS_AAA_PROF" device-authentication 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF" accounting 802.1x "CLEARPASS"
aaa profile "CLEARPASS_AAA_PROF" 802.1x re-authentication enable
aaa profile "CLEARPASS_AAA_PROF" radius mac-format calling-station-id delimiter none case lowercase
! DA-UNP:
unp dynamic-vlan-configuration
unp dynamic-profile-configuration
unp profile "GENOVA-FULL"
unp profile "GENOVA-USER"
unp profile "GENOVA-GUEST"
unp profile "GENOVA-FULL" map vlan 1
unp profile "GENOVA-USER" map vlan 1
unp profile "GENOVA-GUEST" map vlan 1
unp port 1/1/7-8 port-type bridge
unp port 1/1/7-8 direction both dynamic-service none
unp port 1/1/7-8 admin-state enable
unp port 1/1/7-8 802.1x-authentication
unp port 1/1/7-8 802.1x-authentication failure-policy mac
unp port 1/1/7-8 mac-authentication
MAC auth work as expected but 802.1x not. I can see this behaviour:
-> show unp user details
Port: 1/1/7
MAC-Address: 54:b2:03:85:95:1f
SAP = -,
Service ID = -,
VNID = -,
VPNID = -,
ISID = -,
VPLSID = -,
Access Timestamp = 01/01/1970 00:32:05,
User Name = [*******],
IP-Address = 172.19.52.12,
Vlan = 1,
Authentication Type = 802.1x,
Authentication Status = Authenticated,
Authentication Failure Reason = -,
Authentication Retry Count = 0,
Authentication Server IP Used = 192.168.152.112,
Authentication Server Used = CLEARPASS,
Server Reply-Message = -,
Profile = GENOVA-USER,
Profile Source = Auth - Pass - Server UNP,
Profile From Auth Server = GENOVA-USER,
Session Timeout = 0,
Classification Profile Rule = -,
Role = -,
Role Source = -,
User Role Rule = -,
Restricted Access = No,
Location Policy Status = -,
Time Policy Status = -,
QMR Status = Passed,
Redirect Url = -,
SIP Call Type = Not in a call,
SIP Media Type = None,
Applications = None,
Encap Value = -,
Rule ID = -,
Total users : 1
-> show unp user details
Port: 1/1/7
MAC-Address: 54:b2:03:85:95:1f
SAP = -,
Service ID = -,
VNID = -,
VPNID = -,
ISID = -,
VPLSID = -,
Access Timestamp = ,
User Name = 54:b2:03:85:95:1f,
IP-Address = 172.19.52.12,
Vlan = 1,
Authentication Type = -,
Authentication Status = -,
Authentication Failure Reason = -,
Authentication Retry Count = 0,
Authentication Server IP Used = -,
Authentication Server Used = -,
Server Reply-Message = -,
Profile = -,
Profile Source = -,
Profile From Auth Server = -,
Session Timeout = -,
Classification Profile Rule = -,
Role = -,
Role Source = -,
User Role Rule = -,
Restricted Access = -,
Location Policy Status = -,
Time Policy Status = -,
QMR Status = -,
Redirect Url = -,
SIP Call Type = Not in a call,
SIP Media Type = None,
Applications = None,
Encap Value = -,
Rule ID = -,
Those logs are taken 1sec after each. On my nas I can see access-accept and Filter-id correctly sended but seems and this process repeats 1 sec after 1 sec. The authentication status pass from in progress to to active then in progress again.
My suplicant use EAP-PEAP (without cert) and I use same unp profile for MAC Auth. Realy dont understand why have this kind of loop.
I have also try to create a port template but have broken mac auth and have the same behavior on 802.....
unp port-template "CPPM-PORT-TEMPLATE" redirect-port-bounce direction both aaa-profile "CLEARPASS_AAA_PROF" ap-mode secure admin-state enable
unp port-template "CPPM-PORT-TEMPLATE" 802.1x-authentication
unp port-template "CPPM-PORT-TEMPLATE" 802.1x-authentication failure-policy mac
unp port-template "CPPM-PORT-TEMPLATE" mac-authentication
This sw have 8.10.102.R01 version.
Have also tested radius response:
-> aaa test-radius-server CLEARPASS type authentication user dummyuser password password method pap
Testing Radius Server <192.168.152.112/CLEARPASS>
Access-Accept from 192.168.152.112 Port 1812 Time: 344 ms
Returned Attributes
Filter-ID = GENOVA-FULL
Any ideas ?