Class-based weighted fair queueing (CBWFQ provide support for user-defined traffic classes. For CBWFQ, you define traffic classes based on match criteria including protocols, access control lists (ACLs), and input interfaces.
Configuring CBWFQ:
1. Define traffic (ACL / class-maps)
2. Cerate a service-policy
3. Apply service-policy to interface
Example CBWFQ configuration:
access-list 100 permit udp any any range 16384 32000
access-list 100 permit tcp any any eq 1720
access-list 101 permit tcp any any eq 80
access-list 102 permit tcp any any eq 23
!
class-map voice
match access-group 100
! --- Traffic that matches ACL 100 is classified as class voice
class-map www
match access-group 101
! --- Traffic that matches ACL 101 is classified as class www
class-map telnet
match access-group 102
! --- Traffic that matches ACL 102 is classified as class telnet
policy-map cbwfq-policy
class voice
bandwidth 40
class www
bandwidth 15
class telnet
bandwidth 15
class class-default
fair-queue
interface serial 2/0
bandwith 128
service-policy output cbwfq-policy
! --- Apply the service-policy to interface
|