Pcornel
Networking · IP Services › QoS

Apply Policy

Cheat sheet · https://pcornel.dk/topic.php?topic=670

Back to the Topic

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 counters
  • show 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 questionMeaning
InterfaceWhere policy is active
Input/outputPacket direction at that point
CountersMatching/action evidence
HierarchyParent/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

Confirmation

Confirm action

Continue?