cisco Catalyst 9300 Series Switches — Example: Configuring MACsec MKA for Port Channel Using PSK

Example: Configuring MACsec MKA for Port Channel Using PSK Etherchannel Mode: Static/On The following is a sample configuration on Device 1 and Device 2 with EtherChannel Mode on:

Device> enable Device# configure terminal Device(config)# key chain KC macsec Device(config-key-chain)# key 1000 Device(config-key-chain)# cryptographic-algorithm aes-128-cmac Device(config-key-chain)# key-string FC8F5B10557C192F03F60198413D7D45 Device(config-key-chain)# exit Device(config)# mka policy POLICY Device(config-mka-policy)# key-server priority 0 Device(config-mka-policy)# macsec-cipher-suite gcm-aes-128 Device(config-mka-policy)# confidentiality-offset 0 Device(config-mka-policy)# exit Device(config)# interface gigabitethernet 1/0/1 Device(config-if)# channel-group 2 mode on Device(config-if)# macsec network-link Device(config-if)# mka policy POLICY Device(config-if)# mka pre-shared-key key-chain KC Device(config-if)# exit Device(config)# interface gigabitethernet 1/0/2 Device(config-if)# channel-group 2 mode on Device(config-if)# macsec network-link Device(config-if)# mka policy POLICY Device(config-if)# mka pre-shared-key key-chain KC Device(config-if)# end Layer 2 EtherChannel Configuration Device 1 Device> enable Device# configure terminal Device(config)# interface port-channel 2 Device(config-if)# switchport Device(config-if)# switchport mode trunk Device(config-if)# no shutdown Device(config-if)# end Device 2 Device> enable Device# configure terminal Device(config)# interface port-channel 2 Device(config-if)# switchport Device(config-if)# switchport mode trunk Device(config-if)# no shutdown Device(config-if)# end The following is a sample output from the show etherchannel summary command:

Flags: D - down P - bundled in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator M - not in use, minimum links not met u - unsuitable for bundling Configuring MACsec Encryption Example: Configuring MACsec MKA for Port Channel Using PSK Configuring MACsec Encryption 41