Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


key-server-priority (MACsec)


Hierarchy Level


Specifies the key server priority used by the MACsec Key Agreement (MKA) protocol to select the key server when MACsec is enabled using static connectivity association key (CAK) security mode.

The switch with the lower priority-number is selected as the key server.

If the priority-number is identical on both sides of a point-to-point link, the MKA protocol selects the device with the lower MAC address as the key server.


The default key server priority number is 16.



Specifies the MKA server election priority number.

The priority-number can be any number between 0 and 255. The lower the number, the higher the priority.

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 13.2X50-D15.

Statement introduced for SRX Series Firewalls in Junos OS Release 15.1X49-D60.