set policy profile

Use this command to create a policy profile entry.

Syntax

S- and K-Series
set policy profile profile-index [name name] [pvid-status {enable | disable}] [pvid pvid] [cos-status {enable | disable}] [cos cos] [egress-vlans egress-vlans] [forbidden-vlans forbidden-vlans] [untagged-vlans untagged-vlans] [append] [clear] [tci-overwrite {enable | disable}] [precedence precedence-list] [mirror-destination mirror-index] | [clear-mirror] | [prohibit-mirror][syslog {enable | disable}] [trap {enable | disable}] [disable-port {enable | disable}] [fst class-index] [web-redirect redirect-index]
7100-Series
set policy profile profile-index [name name] [pvid-status {enable | disable}] [pvid pvid] [cos-status {enable | disable}] [cos cos] [egress-vlans egress-vlans] [forbidden-vlans forbidden-vlans] [untagged-vlans untagged-vlans] [append] [clear] [tci-overwrite {enable | disable}]

Parameters

profile-index Specifies an index number for the policy profile. Valid values are: 1 - 1023 (S-, K-Series) 1 - 63 (7100-Series).
name name (Optional) Specifies a name for the policy profile. This is a string from 1 to 64 characters.
pvid-status enable | disable (Optional) Enables or disables PVID override for this policy profile. If all the classification rules associated with this profile are missed, then this parameter, if specified, determines default behavior.
pvid pvid (Optional) Specifies the PVID to assign to packets, if PVID override is enabled and invoked as the default behavior.
cos-status enable | disable (Optional) Enables or disables Class of Service override for this policy profile. If all the classification rules associated with this profile are missed, then this parameter, if specified, determines default behavior.
cos cos (Optional) Specifies a COS value to assign to packets, if CoS override is enabled and invoked as the default behavior. Valid values are 0 to 255.
egress-vlans egress-vlans (Optional) Specifies that the port to which this policy profile is applied should be added to the egress list of the VLANs defined by egress-vlans. Packets will be formatted as tagged.
forbidden-vlans forbidden-vlans (Optional) Specifies that the port to which this policy profile is applied should be added as forbidden to the egress list of the VLANs defined by forbidden-vlans. Packets from this port will not be allowed to participate in the listed VLANs.
untagged-vlans untagged-vlans (Optional) Specifies that the port to which this policy profile is applied should be added to the egress list of the VLANs defined by untagged-vlans. Packets will be formatted as untagged.
append (Optional) Appends this policy profile setting to settings previously specified for this policy profile by the egress-vlans, forbidden-vlans, or untagged-vlans parameters.

If append is not used, previous VLAN settings are replaced.

clear (Optional) Clears this policy profile setting from settings previously specified for this policy profile by the egress-vlans, forbidden-vlans, or untagged-vlans parameters.
tci-overwrite enable | disable (Optional) Enables or disables TCI (tag control information) overwrite for this profile. When enabled, rules configured for this profile are allowed to overwrite user priority and other classification information in the VLAN tag‘s TCI field.
precedence precedence-list (Optional) Assigns a rule precedence to this profile. Lower values will be given higher precedence (S-, K-Series).
mirror-destination mirror-index (Optional) Applies the specified mirror destination index to this profile. Valid values: 1 - 255 (S-, K-Series).
clear-mirror (Optional) Clears mirroring on this profile (S-, K-Series).
prohibit-mirror (Optional) Prohibits mirroring on this profile (S-, K-Series).
syslog enable | disable (Optional) Enables or disables syslog on profile use (S-, K-Series).
trap enable | disable (Optional) Enables or disables traps on profile use (S-, K-Series).
disable-port enable | disable (Optional) Enables or disables the disabling of ingress ports on profile use (S-, K-Series).
fst class-index (Optional) Specifies a flow limit class to associate with this profile (S-, K-Series).
web-redirect redirect-index (Optional) Specifies a web-redirection index used by captive portal redirection to associate with this profile. 0 = No index set. Default = 0 (S-, K-Series).

Defaults

  • If optional parameters are not specified, none will be applied.
  • If disable-port enable is not specified, disable-port is disabled (S-, K-Series).
  • If syslog enable is not specified, syslog is disabled (S-, K-Series).
  • If trap enable is not specified, traps are disabled (S-, K-Series).
  • redirect-index defaults to 0 (S-, K-Series).
  • If an FST class is not specified, flowlimiting is not applied to this profile (S-, K-Series).
  • If web-redirect is not specified, The web-redirect class indexes remain unchanged (S-, K-Series).

Mode

All command modes.

Example

This example shows how to create a policy profile 1 named “netadmin” with PVID override enabled for PVID 10, and Class-of-Service override enabled for CoS 5. This profile can use VLAN 10 for untagged egress:

System(rw)->set policy profile 1 name netadmin pvid-status enable pvid 10 cos-status enable cos 5 untagged-vlans 10