37-44
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service
Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE
Figure 37-5 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
Police 100m 16k conform transmit exceed drop
Interface Gigabit 3/1
Switchport
Switchport trunk encapsulation dot1q
Switchport trunk allowed vlan 101-102
Vlan range 101
Service-policy input P31_QoS
Service-policy output P31_QoS
Vlan range 102
Service-policy input P32_QoS
Service-policy output P32_QoS
Example 2
Assume that interface Gigabit Ethernet 6/1 is a trunk port and belongs to VLANs 20, 300-301, and 400. The following example shows how to apply policy map p1 for traffic in VLANs 20 and 400 and policy map p2 to traffic in VLANs 300 through 301:
L2 trunk
VLAN
102
VLAN
101
DSCP
DSCP
Police1
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