cấu hình :
class-map type qos class_foo
match cos 3-4
policy-map type qos pm1
class type qos class_foo
set qos-group 1
class type qos class-default
set qos-group 0
interface ethernet 1/1
service-policy type qos input pm1
class-map type queuing class-foo
match qos-group 1
policy-map type queuing policy-foo
class type queuing class-foo
bandwidth percent 20
class type queuing class-default
bandwidth percent 80
interface ethernet 1/3
service-policy type queuing input policy-foo
===============================
class-map type qos class_dscpaf33
match dscp af33
policy-map type qos pm-af33
class type qos class_dscpaf33
set qos-group 1
class type qos class-default
set qos-group 0
class-map type queuing class_dscpaf33
match qos-group 1
policy-map type queuing policy-dscpaf33
class type queuing class_dscpaf33
bandwidth percent 20
class type queuing class-default
bandwidth percent 80
interface ethernet 1/41
service-policy type qos input pm-af33
interface ethernet 1/42
service-policy type queuing input policy-dscpaf33
====================
interface Ethernet1/41
no service-policy type qos input pm-af11
interface Ethernet1/42
no service-policy type queuing input policy-dscpaf11