macro auto global processing
no macro auto global control device
mka policy TEST
mka policy TEST
mka pre-shared-key key-chain TEST
key chain TEST macsec
description MACSEC TEST
key 0100000000000000000000000000000000000000000000000000000000000000
cryptographic-algorithm aes-128-cmac
key-string xxx
macro auto execute ASM_MACSEC {
if [[ $LINKUP == YES ]]
then conf t
interface $INTERFACE
macro description $TRIGGER
switchport mode trunk
authentication host-mode multi-host
macsec network-link
mka policy TEST
mka pre-shared-key key-chain TEST
exit
fi
if [[ $LINKUP == NO ]]
then conf t
interface $INTERFACE
no macro description $TRIGGER
switchport mode access
authentication host-mode multi-auth
no macsec network-link
no mka policy TEST
no mka pre-shared-key key-chain TEST
exit
fi
end
interface GigabitEthernet1/0/1
switchport mode access
switchport port-security maximum 2
switchport port-security aging time 1
switchport port-security aging type inactivity
switchport port-security
device-tracking attach-policy IPDT_POLICY
authentication event fail action next-method
authentication event server dead action authorize
authentication event server alive action reinitialize
authentication host-mode multi-auth
authentication order dot1x mab
authentication priority dot1x mab
authentication port-control auto
authentication timer inactivity server
authentication violation restrict
mab
no snmp trap link-status
auto qos trust dscp
source template default-nac
spanning-tree portfast
service-policy input AutoQos-4.0-Trust-Dscp-Input-Policy
service-policy output AutoQos-4.0-Output-Policy
The aaa process itself runs through and the switch gets authenticated/authorized in ise. The macro gets applied. The connection breaks down, the end.
When i add macro auto port sticky to the authenticator port, the mka macro stays applied and the mka session is stable, but the aaa session is gone and never reestablishes.
What am i doing wrong? Is there a better way to achieve what i try to do?