Creating a Two-Rate Rate-Limit Profile
To create or modify a two-rate rate-limit profile, use the following commands with the two-rate keyword:
- rate-limit-profile command
- ipv6 rate-limit-profile command
- mpls rate-limit-profile command
- l2tp rate-limit-profile command
The following example creates a rate-limit profile named hardlimit9Mb. This rate-limit profile, when included as part of a rule in a policy list, sets a hard limit on the specified committed rate with no peak rate or peak burst ability:
host1(config)#ip rate-limit-profile hardlimit9Mb two-ratehost1(config-rate-limit-profile)#committed-rate 9000000host1(config-rate-limit-profile)#committed-burst 20000host1(config-rate-limit-profile)#committed-action transmithost1(config-rate-limit-profile)#conformed-action drophost1(config-rate-limit-profile)#exceeded-action drophost1(config-rate-limit-profile)#mask-val 255The following example modifies the rate-limit profile named hardlimit9Mb to include an exceeded action that marks the packets that exceed the peak rate. This marking action sets the DS field in the ToS byte (the six most significant bits) to the decimal value of 7 using a mask value of 0xFC:
host1(config)#ip rate-limit-profile hardlimit9Mb two-ratehost1(config-rate-limit-profile)#exceeded-action mark 7host1(config-rate-limit-profile)#mask-val 252To set IP precedence in the ToS byte, use the mask value of 0xE0, for visibility into the three most significant bits.