First I’ll create a simple policy that will match on 2gbps. The policy map in IOS-XR is a dream, it lets you specify speed in bps, kbps, mbps, or gbps…stupid simple.
policy-map 2gig
class class-default
police rate 2 gbps
conform-action transmit
exceed-action drop
!
!
end-policy-map
So class “class-default” is a built in class that basically says “match all”.
Conform action is transmit, so as long as they are within 2Gbps all it through.
Exceed action says everything else, drop.
Now apply the limit to my interface:
interface TenGigE0/1/0/11
description [Customer 1]
service-policy input 2gig
service-policy output 2gig
Good luck and happy rate-limiting.
Leave a Reply