Setting the MACsec Mode
Context
- none: no encryption and no integrity check
- normal: encryption and integrity check
- integrity-only: integrity check but no encryption
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
An interface can work in Layer 2 or Layer 3 mode.
- Run macsec mode { none | normal | integrity-only }
The MACsec mode is set.
By default, the MACsec mode is none.
When you configure MACsec on a network where traffic is being transmitted and received, set the MACsec mode on both ends to none. When the MKA negotiation is successful, change the MACsec mode on both ends to normal. This can shorten the traffic interruption time.
To view the MKA negotiation status, run the display mka interface interface-type interface-number command. When the MKA status value is SUCCEEDED, the MKA negotiation is successful.
- Run commit
The configuration is committed.