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

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

class-map + IP precedence

Hi Guys,

I'm configuring my router to guaranteed minimum bandwidth of 512K for all traffic leaving E0/0 of R3 with IP Precedence 2.

solution I:

On R3

class-map match-all Pr2

match input-interface Ethernet0/0

match ip precedence 2

policy-map P1

class Pr2

bandwidth 512

interface Ethernet0/0

service-policy output P1

solution II:

on R3

all config the same except match precedence 2 instead of match ip precedence 2.

what's the diffrence between both statements!!

--> match ip precedence 2

--> match precedence 2

which solution is the most correct !!

appreciate any helpful inputs..

Hall of Fame Super Blue

Re: class-map + IP precedence

match precedence = matches both IPv4 & IPv6 packets

match ip precedence = matches IPv4 packets only.

One other thing. If you are matching traffic leaving e0/0 why the "match input-interface e0/0" ?


New Member

Re: class-map + IP precedence

Hi Jon,

it make scenes now, do u thing "match input-interface e0/0" command isn't required to achieve the goal !!



Re: class-map + IP precedence


You are trying to use congestion management method and the policy is applied to the e0/0 interface for doing outbound queuing. It's not properly to match inbound packets from the e0/0 interface.

Note: If the interface doesn't get congestion then the policy will not be applied.It's not easy to make the ethernetinterface to get congestion.Seems you need to use shaping and child-policy to beat this requirement.



New Member

Re: class-map + IP precedence

Hi Thot,

u r right It's not easy to make the ethernet interface to get congestion but I just configured it for testing purpose to figure out if this is only required config commands to achieve the requirement.

it seems as u had said no need to match the physical interface.

many thx..