cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
646
Views
0
Helpful
2
Replies

PBR and service policy on the same interface

petrk
Level 1
Level 1

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 2

Hieu Cao
Level 4
Level 4

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

kamal-learn
Level 4
Level 4

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

Review Cisco Networking products for a $25 gift card