Networking · IP Services › QoS
Apply Policy
Cheat sheet · https://pcornel.dk/topic.php?topic=670
Answer
Applying a QoS policy attaches a policy-map to an interface with service-policy input|output <name>; marking and policing are usually inbound, queuing and shaping outbound.
Remember
service-policy input|output <policy>applies a policy map to an interface.- Queuing policies normally apply outbound only.
- One policy per direction per interface.
First checks
show policy-map interface <interface>— policy applied and countersshow running-config interface <interface>— service-policy input/output
Commands
service-policy input <policy>- Apply a QoS policy to traffic entering the interface.
service-policy output <policy>- Apply a QoS policy to traffic leaving the interface.
show policy-map interface- Display per-class QoS counters on interfaces.
Verify in this order
policy-map → service-policy on interface → counters
Where it usually breaks
packet selector → class match → marking → policy attachment → queue/policer/shaper → egress counters/drops → receiver behavior
Apply Policy · technical reference
| Attachment question | Meaning |
|---|---|
| Interface | Where policy is active |
| Input/output | Packet direction at that point |
| Counters | Matching/action evidence |
| Hierarchy | Parent/child resource relationship |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=670