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. And see here for current known issues.

New Member

Changing OSPF DSCP / Precedence value

Hi,

I am trying to use policy based routing to change the default DSCP value of OSPF. Although it seems to recognise EIGRP, it is not working with OSPF.

Has anyone come across this, or has a good method of changing the DSCP value for OSPF?

thanks,

Mark

ip access-list extended match-cs6

permit ip any any dscp cs6

route-map cs6-to-cs5 permit 10

match ip address match-cs6

set ip precedence critical

ip local policy route-map cs6-to-cs5

2 REPLIES
Purple

Re: Changing OSPF DSCP / Precedence value

How about the following:

ip access-list extended match-ospf

permit ospf any any

!

route-map ospf-to-cs5 permit 10

match ip address match-ospf

set ip precedence critical

!

ip local policy route-map ospf-to-cs5

Hope that helps - pls do rate the post if it does.

Paresh

New Member

Re: Changing OSPF DSCP / Precedence value

Hi Paresh,

Thanks for the note.

I have instead tried the config, as below, which should match all traffic. As you can see from the output it does. For some reason, the local policy route is not capturing the ospf traffic.

I suspect my other choice is to set the policy route on a loopback and re-direct all outbound traffic to that, so the policy does get applied, but I really don't want to do that.

All I am looking for is an easy way to change the DSCP value of ospf,

thanks,

Mark

http://www.cisco.com/en/US/products/ps6599/products_white_paper09186a00800a4409.shtml#wp14019

route-map cs6-to-cs5 permit 10

set ip precedence routine

!

ip local policy route-map cs6-to-cs5

dscp: outgoing

-------------------------------

0 - 4 : 0 0 0 0 0

5 - 9 : 0 0 0 0 0

10 - 14 : 0 0 0 0 0

15 - 19 : 0 0 0 0 0

20 - 24 : 0 0 0 0 0

25 - 29 : 0 0 0 0 0

30 - 34 : 0 0 0 0 0

35 - 39 : 0 0 0 0 0

40 - 44 : 0 0 0 0 0

45 - 49 : 0 0 0 86917 0

50 - 54 : 0 0 0 0 0

55 - 59 : 0 0 0 0 0

60 - 64 : 0 0 0 0

cos: incoming

-------------------------------

0 - 4 : 892 0 0 0 0

5 - 7 : 0 0 0

cos: outgoing

-------------------------------

0 - 4 : 0 0 0 0 0

5 - 7 : 0 0 86917

Policer: Inprofile: 0 OutofProfile: 0

2417
Views
0
Helpful
2
Replies
CreatePlease login to create content