MACsec Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

MACsec Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

MACsec policy exceptions for LLDP packets

Want to summarize with AI?

Log in

Describes how to allow LLDP packets to be transmitted in clear text, facilitating neighbor discovery and troubleshooting on MACsec-enabled ports while maintaining encryption for all other data traffic.



Configure MACsec policy exception for LLDP packets

Configure a MACsec policy to allow LLDP packets to be transmitted in clear-text format without encryption.

By default, MACsec encrypts all traffic on a link. This task enables an exception for Link Layer Discovery Protocol (LLDP) packets, allowing them to pass through unencrypted while maintaining encryption for other traffic types.

Procedure

  1. Use the macsec-policy command to access the desired MACsec policy configuration by specifying the policy name.

    Example:

    Router# configure
    Router(config)# macsec-policy test-macsec
  2. Use the allow lldp-in-clear command to enable the LLDP clear-text exception.

    Example:

    Router(config-macsec-policy)# allow lldp-in-clear
  3. Use the show running config command to confirm the policy exception.

    Example:

    Router# show running-config macsec-policy test-macsec
    macsec-policy mp1
    …
    allow lldp-in-clear
    !
    
  4. Use the show macsec policy detail and show macsec mka interface detail commands to verify the policy details reflect the LLDP clear-text setting.

    Example:

    Router# show macsec policy detail
    Total Number of Policies = 1
    --------------------------------------------------------
    Policy Name : mp1
    Cipher Suite : GCM-AES-XPN-256
    Key-Server Priority : 10
    Window Size : 64
    Conf Offset : 50
    Replay Protection : TRUE
    Delay Protection : FALSE
    Security Policy : Must Secure
    Vlan Tags In Clear : 1
    LACP In Clear : FALSE
    LLDP In Clear : TRUE
    Pause Frame In Clear : FALSE
    Sak Rekey Interval : 60 seconds
    
    Router# show macsec mka interface detail
    Number of interfaces on node node0_3_CPU0 : 1
    ----------------------------------------------------
    Interface Name : HundredGigE0/3/0/5
    Interface Namestring : HundredGigE0/3/0/5
    Interface short name : Hu0/3/0/5
    Interface handle : 0x1800238
    Interface number : 0x1800238
    MacSecControlledIfh : 0x18005e0
    MacSecUnControlledIfh : 0x18005e8
    Interface MAC : 5cb1.2ede.7648
    Ethertype : 888E
    EAPoL Destination Addr : 0180.c200.0003
    MACsec Shutdown : FALSE
    Config Received : TRUE
    IM notify Complete : TRUE
    MACsec Power Status : Allocated
    Interface CAPS Add : TRUE
    RxSA CAPS Add : TRUE
    TxSA CAPS Add : TRUE
    lldp-in-clear : TRUE
    

The MACsec policy is updated to allow LLDP packets in clear-text, confirmed by showing running configuration and interface details.