macsec
interface/macsec
Conditions: !smips
Type: Directory
Create MACsec interfaces on Ethernet links and inspect their Secure Channel (SC) and Secure Association (SA) statistics. Interfaces can carry a comment, and new interfaces are enabled by default. RouterOS uses matching static CAK and CKN values on both peers; automatic dot1x key provisioning is not available. The tx-sc-* and rx-sc-* rows are aggregate counters for each SC, while the tx-sa-* and rx-sa-* rows are arrays for individual SA slots. See MACsec for configuration, MTU, negotiation, and troubleshooting.
| Flag | Name | Description |
|---|---|---|
| I | inactive | The MACsec interface is inactive. |
| X | disabled | The MACsec interface is disabled by configuration. |
| R | running | The MACsec interface is running. |
| H | hw-offloaded | MACsec processing is actively offloaded to supported hardware for this interface. The flag does not merely indicate hardware capability. |
| Argument | Type | Description |
|---|---|---|
| name | string | Name of the MACsec interface. Default: macsec1. |
| mtu | num | Maximum transmission unit in bytes for traffic on the MACsec interface. The MACsec L2MTU is automatically set to the parent interface L2MTU minus the 32-byte MACsec overhead and cannot be changed directly. Default: 1468. |
| interface ( mandatory ) | iface_enum | Parent Ethernet interface on which to create MACsec. Only one MACsec interface can use a parent. A parent that already belongs to a bridge produces an invalid MACsec interface with the detail Interface is already a slave; add the MACsec interface to the bridge instead. |
| cak | string | Sixteen-byte pre-shared Connectivity Association Key (CAK), entered as 32 hexadecimal characters. Both ends of the link must use matching CAK and CKN values. Use print show-sensitive to display the value for provisioning on the peer. Default: a randomly generated 16-byte value. |
| ckn | string | Thirty-two-byte Connectivity Association Name (CKN), entered as 64 hexadecimal characters. Both ends of the link must use matching CAK and CKN values. Default: a randomly generated 32-byte value. |
| profile | enum | MACsec profile that supplies the ordered cipher-suite list and key-server priority. Default: default. |
| Read-only Argument | Type | Description |
|---|---|---|
| status | string | Current MACsec interface state.
|
| tx-untagged | num | Transmitted frames sent without a SecTAG because MACsec protection was not applied. |
| rx-untagged | num | Received frames without a SecTAG that were accepted when frame validation was not Strict. |
| tx-too-long | num | Transmitted frames discarded because MACsec overhead would make the secured frame too long. |
| rx-no-tag | num | Received frames discarded because the SecTAG was absent while Strict validation required it. |
| rx-bad-tag | num | Received frames discarded because their SecTAG was malformed or otherwise invalid. |
| rx-unknown-sci | num | Received frames discarded because their Secure Channel Identifier (SCI) did not identify a known receive SC. |
| rx-no-sci | num | Received frames discarded because the SCI was absent and no receive SC could be identified. |
| rx-overrun | num | Received frames discarded because SecY receive or validation resources were overrun. |
| tx-sc-protected-byte | multi { counter: num } | Aggregate number of plaintext octets transmitted with integrity protection but without encryption on this TX SC. |
| tx-sc-protected-packet | multi { counter: num } | Aggregate number of packets transmitted with integrity protection but without encryption on this TX SC. |
| tx-sc-encrypted-byte | multi { counter: num } | Aggregate number of plaintext octets transmitted with encryption and integrity protection on this TX SC. |
| tx-sc-encrypted-packet | multi { counter: num } | Aggregate number of packets transmitted with encryption and integrity protection on this TX SC. |
| rx-sc-validated-byte | multi { counter: num } | Aggregate number of plaintext octets successfully integrity-validated without decryption on this RX SC. |
| rx-sc-decrypted-byte | multi { counter: num } | Aggregate number of plaintext octets successfully decrypted and integrity-validated on this RX SC. |
| rx-sc-unchecked | multi { counter: num } | Aggregate number of packets received while frame validation was Disabled and accepted without integrity validation on this RX SC. |
| rx-sc-delayed | multi { counter: num } | Aggregate number of valid packets received out of order but inside the replay window when replay protection is enabled on this RX SC. The counter definition does not indicate that replay protection is enabled in RouterOS. |
| rx-sc-ok | multi { counter: num } | Aggregate number of secured packets successfully validated on this RX SC. |
| rx-sc-invalid | multi { counter: num } | Aggregate number of packets that failed Integrity Check Value (ICV) validation on this RX SC. |
| rx-sc-late | multi { counter: num } | Aggregate number of valid packets received with a packet number lower than the next expected packet number while replay protection is disabled on this RX SC. |
| rx-sc-not-valid | multi { counter: num } | Aggregate number of packets rejected because their packet number failed the applicable validity or replay-window checks on this RX SC. |
| rx-sc-not-using-sa | multi { counter: num } | Aggregate number of packets rejected because they referred to an SA that was not in use on this RX SC. |
| rx-sc-unused-sa | multi { counter: num } | Aggregate number of SecTAGged, integrity-only frames (C=0) received on an SA not in use and accepted because validation was not Strict on this RX SC. |
| rx-sa-ok | multi { counter: num } | Per-SA slot count of packets successfully validated with this individual RX SA. |
| rx-sa-invalid | multi { counter: num } | Per-SA slot count of packets that failed ICV validation for this individual RX SA. |
| rx-sa-not-valid | multi { counter: num } | Per-SA slot count of packets that failed packet-number validity checks for this individual RX SA. |
| rx-sa-not-using-sa | multi { counter: num } | Per-SA slot count of rejected packets associated with this RX SA while it was not in use. |
| rx-sa-unused-sa | multi { counter: num } | Per-SA slot count of SecTAGged, integrity-only frames (C=0) received while this SA was not in use and accepted because validation was not Strict. |
| tx-sa-protected | multi { counter: num } | Per-SA slot count of integrity-protected, unencrypted packets transmitted with this individual TX SA. |
| tx-sa-encrypted | multi { counter: num } | Per-SA slot count of encrypted, integrity-protected packets transmitted with this individual TX SA. |