Configuring Color Mark Actions (SRC CLI)
You can configure color-mark actions to apply a TOS mark value based on the packet’s color. A color-mark can be applied to a packet after it exits a rate-limit hierarchy.
The type of action that you can create depends on the type policy rule. See Policy Information Model.
Use the following configuration statements to configure color actions:
- policies group name list name rule name color-mark name
{
- green-mark green-mark;
- yellow-mark yellow-mark;
- red-mark red-mark;
- mask mask;
- description description;
- }
To configure a color mark action:
- From configuration mode, enter the color mark action configuration.
For example, in this procedure, cma is the name of the color action.
- [edit]
- user@host# edit policies group junose_filter list in rule pr color cma
- (Optional) Specify the green-mark value.
- [edit policies group junose_filter list in rule pr filter cma]
- user@host# set green-mark green-mark
- (Optional) Specify the yellow-mark value.
- [edit policies group junose_filter list in rule pr filter cma]
- user@host# set yellow-mark yellow-mark
- (Optional) Specify the red-mark value.
- [edit policies group junose_filter list in rule pr filter cma]
- user@host# set red-mark red-mark
- Specify the mask value to use when marking packets.
- [edit policies group junose_filter list in rule pr filter cma]
- user@host# set mask mask
- (Optional) Enter a description for the color mark action.
- [edit policies group junose_filter list in rule pr filter cma]
- user@host# set description description
- (Optional) Verify the color action mark configuration.
[edit policies group junose_filter list in rule pr filter cma] user@host# show description mark green packets; green-mark 100; mask 255;