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 desirable 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 shows 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 w - waiting to be aggregated d - default port A - formed by Auto LAG Number of channel-groups in use: 1 Number of aggregators:
1 ------+-------------+-----------+----------------------------------------------- 2 Po2(SU) PAgP Te1/1/1(P) Te1/1/2(P) Layer 3 EtherChannel Configuration Device 1 Device> enable Device# configure terminal Device(config)# interface port-channel 2 Device(config-if)# no switchport Device(config-if)# ip address 10.25.25.3 255.255.255.0 Device(config-if)# no shutdown Device(config-if)# end Configuring MACsec Encryption Example: Configuring MACsec MKA for Port Channel Using PSK Configuring MACsec Encryption 45