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

Configuring MACsec Encryption Configuring MKA MACsec for Port Channel Using PSK Command or Action Purpose Device(config-if)# mka policy mka policy _ Step 6 mka pre-shared-key key-chain key-chain name [fallback key-chain key-chain name] Example: Device(config-if)# mka pre-shared-key key-chain key-chain-name Configures an MKA pre-shared key key-chain name. Note The MKA pre-shared key can be configured either on the physical interface or the subinterface but not on both. Step 7 macsec replay-protection window-size frame number Example: Device(config-if)# macsec replay-protection window-size 0 Sets the MACsec window size for replay protection.

Step 8 channel-group channel-group-number mode {auto | desirable} | {active | passive} | {on} Example: Device(config-if)# channel-group 3 mode auto active on Configures the port in a channel group and sets the mode. Note You cannot configure ports in a channel group without configuring MACsec on the interface. You must configure the commands in Step 3, 4, 5 and 6 before this step. The channel-number range is from 1 to 4096. The port channel associated with this channel group is automatically created if the port channel does not already exist. For mode, select one of the following keywords: • auto: Enables PAgP only if a PAgP device is detected.

This places the port into a passive negotiating state, in which the port responds to PAgP packets it receives but does not start PAgP packet negotiation. Note The auto keyword is not supported when EtherChannel members are from different switches in the switch stack. • desirable: Unconditionally enables PAgP. This places the port into an active negotiating state, in which the port starts negotiations with other ports by sending PAgP packets. Note The desirable keyword is not supported when EtherChannel members are from different switches in the switch stack. Configuring MACsec Encryption 28