Skip to content
Feb 10 / Greg

Simple Interface Policing In IOS-XR (ASR9000)

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.

1
2
3
4
5
6
7
8
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:

1
2
3
4
interface TenGigE0/1/0/11
 description [Customer 1]
 service-policy input 2gig
 service-policy output 2gig

Good luck and happy rate-limiting.

Leave a Comment

 

*