Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
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 {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.[edit]user@host# edit policies group junose_filter list in rule pr color-mark
- (Optional) Specify the green-mark value. [edit policies group junose_filter list in rule pr color-mark]user@host# set green-mark green-mark
- (Optional) Specify the yellow-mark value. [edit policies group junose_filter list in rule pr color-mark]user@host# set yellow-mark yellow-mark
- (Optional) Specify the red-mark value. [edit policies group junose_filter list in rule pr color-mark]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 color-mark]user@host# set mask mask
- (Optional) Enter a description for the color mark action. [edit policies group junose_filter list in rule pr color-mark]user@host# set description description
- (Optional) Verify the color action mark configuration.
[edit policies group junose_filter list in rule pr color-mark] user@host# show description mark green packets; green-mark 100; mask 255;