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

New Member

QOS based on IP subnets

Hey guys,

I was wondering if it would be possible to do prioritization based on IP subnets? I have one subnet for internet access but runs through the same switches as the most important traffic. How could I give priority to the more important subnet? Thanks in advance!


Re: QOS based on IP subnets

Surely. You simply set up your subnet to be matched:

ip access-list extended priority-subnet

permit ip any <= if by destination

permit ip any <= if by source

Then do a class for that ACL:

class-map match-all CLASS-PRIO-NET

match access-group name priority-subnet

Then put it in a policy:

policy-map QOS-POLICY


priority percent 35

Hope that's not too much info or oversimplified.


New Member

Re: QOS based on IP subnets

Thank you for that!!!

If I wanted to give one subnet 95% of the bandwidth, what would happen to the other subnets?

Also, is there a way that I can push this to switches to do qos at their level?

Re: QOS based on IP subnets

Not a simple question, but basically the bandwidth limits you set are only in cases where there is not enough bandwidth. If you give a class 95%, and 95% is available, it gets it. The exception is LLQ - "priority" keyword - where anything that exceeds the LLQ bandwidth is dropped. I.e., you can burst UP into LLQ bandwidth if it's available, but you can't burst down (exceed LLQ limits).

*Generally* (and it's a HUGE generalization), you use switches to mark traffic at the edge and use routers to enforce the limits, at least at remote sites. You can do limits on switches but it is not easy (compared to MQC).

Check the QoS SRND Guide, it is an excellent resource.


CreatePlease to create content