27-42
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter27 Configuring Quality of Service
Configuring QoS
Example 1
Figure 27-6 displays a sample topology for configuring PVQoS. The trunk port gi3/1 is comprised of multiple VLANs (101 and 102). Within a port, you can create your own service policy per VLAN. This policy, performed in hardware, might consist of ingress and egress Policing, trusting DSCP, or giving precedence to voice packet over data.
Figure27-6 Per-Port Per-VLAN Topology
The following configuration file shows how to perform ingress and egress policing per VLAN using the policy-map P31_QOS applied to port Gigabit Ethernet 3/1:
ip access-list 101 permit ip host 1.2.2.2 any
ip access-list 103 permit ip any any
Class-map match-all RT
match ip access-group 101
Class-map Match all PD
match ip access-group 103
Policy-map P31_QoS
Class RT
Police 200m 16k conform transmit exceed drop
Class PD
Step5 Switch(config-if)# end Exits configuration interface mode.
Step6 Switch# show policy-map interface
interface_name
Verifies the configuration.
Command Purpose
L2 trunk
VLAN
102
VLAN
101
DSC
SC
P
DSC
SC
P
Po
Po
lice1
Dscp
Port gi3/1 L2 trunk
VLAN
102
VLAN
101
DSCP
DSCP
Police1
Dscp
Port gi3/2
VLAN
104
VLAN
103
DSCP
DSCP
CoS
CoS
Service Policy/VLAN
Within a port
130602