An engineer implements QoS in the enterprise network. Which command can to verify the
correct classification and marking on a cisco IOS switch?
Show answerHide answer
Correct answer: D
show policy-map interface GigabitEthernet 1/0/1
Explanation
Summary:After implementing a Quality of Service (QoS) policy on a Cisco switch interface, an engineer needs to verify that the policy is active and functioning correctly. This involves confirming that traffic is being classified into the correct classes and that the appropriate markings (DSCP, CoS) are being applied as packets are processed by the interface.
Correct Option:
D. show policy-map interface GigabitEthernet 1/0/1:
This is the definitive command for verification. It displays real-time statistics for a service policy applied to a specific interface. The output shows:
Which class-map each packet matched.
The number of packets/bytes that matched each class.
The policing or marking actions that were taken.
This provides direct evidence of correct classification and marking.
Incorrect Option:
A. show policy-map:
This command only displays the configuration of the policy maps themselves (the "what should happen"). It does not show whether the policy is applied to an interface or provide any live statistics about its operation.
B. show class-map interface GigabitEthernet 1/0/1:
This is not a valid Cisco IOS command. The show class-map command exists, but it only shows the class-map configuration, not interface-specific statistics.
C. show access-lists:
This command displays the configuration and hit counts for standard and extended IP access control lists (ACLs). While ACLs can be used within class-maps for classification, this command alone does not show the overall QoS policy operation, marking results, or which policy is applied to an interface.
Reference:
Cisco IOS QoS Configuration Guide, Monitoring QoS (This official guide details the commands used to monitor and troubleshoot QoS, confirming that show policy-map interface is the primary tool for verifying service policy statistics).