Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

PBR and service policy on the same interface

Hi all,

can I use service-policy input to mark packets with DSCP and then perform PBR based on that DSCP value?

something like this:

class-map DSCP1

match ip access-goup 1

!

policy-map set_dscp

class DSCP1

set ip dscp af31

!

interface Ethernet0/0

service-policy input set_dscp

ip policy PBR

!

route-map PBR permit 10

match ip address 101

set ip nex-hop A.B.C.D

!

access-list 1 permit 192.168.1.1

!

access-list 101 permit ip any any dscp af31

!

I'm not sure if input service-policy is applied first and the PBR or the other way around.

Thanks,

Petr

2 REPLIES
New Member

Re: PBR and service policy on the same interface

Not sure of what IOS version that your router is, but you can take a look at this document on configuring PBR

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a008075fae6.html

I would think that the service-policy would be applied first, then PBR.

hieu

Bronze

Re: PBR and service policy on the same interface

hi

why typing two different tools since you are able of achieving you goal by using just route-map, remember with route map you can match traffic and at the same time you can change some packet s parameters , you can code two set one for ip next-hop and the other for dscp at the same time.

give it a try with just route-map and PBR.

HTH

256
Views
0
Helpful
2
Replies