01-10-2007 05:02 AM - edited 03-03-2019 03:19 PM
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
01-10-2007 10:45 AM
Not sure of what IOS version that your router is, but you can take a look at this document on configuring PBR
I would think that the service-policy would be applied first, then PBR.
hieu
01-10-2007 11:35 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide