Two-Rate Rate-Limits ! 95
Chapter 3: Creating Rate-Limit Profiles
Rate-Limit Commands
This section lists the commands you use to configure CLI-based rate-limiting for
interface-specific rate limits.
color-aware
! Use to set the color-aware rate limit. (Supported only on hierarchical rate
limits.)
! Color-aware rate limits may change the algorithm used depending on the color
of the incoming packet, which can have been set in the previous rate limit.
! Example
host1(config-rate-limit-profile)#color-aware
! Use the no version to restore the default, which is not color-aware.
committed-action
! Use to set the committed action for a rate-limit profile.
! Valid committed actions are:
! drop—Drop the packet.
! transmit—Transmit the packet. The following transmit values apply only to
hierarchical rate limits:
" conditional—Transmit the packet through the rate limit to the next
rate limit in the hierarchy.
" unconditional—Transmit the packet through the rate-limit hierarchy to
deplete the tokens.
" final—Transmit the packet and exit the rate-limit hierarchy.
! mark—For IP and IPv6 rate-limit profiles, mark the packet by setting the
ToS byte (IP) or traffic class field (IPv6) to the specified 8-bit value, and
transmit the packet. The mark value is masked with the default 255 unless
it is overridden by the mask-val command to specify a different mask; not
supported on hierarchical rate limits.
! mark-exp—For MPLS rate-limit profiles, set the EXP bits of MPLS packets
to the specified value in the range 0–7, and transmit the packet. The mark
EXP value is masked with the default 7 unless you use the exp-mask
command to specify a different mask; not supported on hierarchical rate
limits.
! Packets are colored green.
! Example
host1(config-rate-limit-profile)#committed-action transmit
! Use the no version to restore the default value, transmit.