macsec policy
Syntax
macsec policy 没有macsec policy
Description
Creates the specified MACsec policy and then enters its context (displayed in the CLI asconfig-macsec-policy
). If the MACsec policy already exists, this command enters the specified MACsec policy context.
A MACsec policy can be applied to one or more switch ports, enabling MACsec on the ports. An MKA (MACsec Key Agreement) policy must be applied to the same ports.
没有
form of this command deletes the MACsec policy.
A MACsec policy cannot be deleted if it is currently applied to any ports. All application of the policy must be removed before the policy can be deleted.
Command context
config
Parameters
-
-
Specifies the MACsec policy name. Range: 1 to 32 alphanumeric characters including only the three special characters "." (period), "-" (hyphen), and "_" (underscore).
Authority
Administrators or local user group members with execution rights for this command.
Examples
Creating a MACsec policy:
switch(config)#macsec policy MS_Policy1switch(config-macsec-policy)#
删除一个MACsec政策(政策不能currently applied to any ports):
switch(config)#没有macsec policy MS_Policy1