cisco Catalyst 9300 Series Switches — Example: Configuring MKA and MACsec

Configuration Examples for MACsec Encryption The following sections provide configuration examples for MACsec encryption. Example: Configuring MKA and MACsec This example shows how to create an MKA policy: Device> enable Device# configure terminal Device(config)# mka policy mka_policy Device(config-mka-policy)# key-server priority 200 Device(config-mka-policy)# macsec-cipher-suite gcm-aes-128 Device(config-mka-policy)# confidentiality-offset 30 Device(config-mka-policy)# ssci-based-on-sci Device(config-mka-policy)# end This example shows how to configure MACsec on an interface:

Device> enable Device# configure terminal Device(config)# interface GigabitEthernet 1/0/1 Device(config-if)# switchport access vlan 1 Configuring MACsec Encryption Configuration Examples for MACsec Encryption Command or Action Purpose Device(config-if)# switchport mode trunk Step 5 eapol eth-type 876F Example: Device(config-if)# eapol eth-type 876F Configures an Ethernet type (hexadecimal) for the EAPOL frame in the interface. Step 6 macsec network-link Example: Device(config-if)# macsec network-link Enables MACsec on the interface. Step 7 mka policy policy-name Example: Device(config-if)# mka policy mka-scale Configures an MKA policy.

Step 8 mka pre-shared-key key-chain key-chain name Example: Device(config-subif)# mka pre-shared-key key-chain mka256 Configures an MKA preshared key (PSK) key chain. Note The MKA PSK can be configured on either the physical interface or the subinterfaces, but not on both. Step 9 end Example: Device(config-if)# end Exits subinterface configuration mode and returns to privileged EXEC mode. Configuring MACsec Encryption 36