Configuring Class-Based Weighted Fair Queuing (CBWFQ)
Figure 4-4 shows a flowchart for the configuration that follows, which shows how to configure Class-Based Weighted Fair Queuing. Note that in the diagram, a set of bandwidths is shown to illustrate the queuing that would occur in CBWFQ. The following configuration example might show other syntax that may be used in a production environment.
Figure 4-4. Class-Based Weighted Fair Queuing
The tasks to configure Class-Based Weighted Fair Queuing are
STEP 1. | |
STEP 2. | |
STEP 3. | |
STEP 4. | |
STEP 5. | |
STEP 6. | |
STEP 7. | |
STEP 8. |
Step 1: Define One or More Class Maps
Router(config)# class-map match-any MAPNAME | Creates class map MAPNAME using Logical-OR for all matching statements. |
OR | |
Router(config)# class-map match-all MAPNAME | Creates class map MAPNAME using Logical-AND for all matching statements. |
Step 2: Specify Traffic Using Match Statements
Router(config-cmap)# match access-group name LETWEBIN | Selects traffic by access control list (ACL) name or number. |
Router(config-cmap)# match input-interface serial0/0/0 | Selects traffic by input interface name. |
Router(config-cmap)# match vlan 55-59 82 | Selects traffic in a single VLAN, a range of VLANs, or both. |
Step 3: Create a Policy
Router(config)# policy-map MARKINGPOLICY | Creates the marking policy MARKINGPOLICY. |
Step 4: Add Class Maps to the Policy
Router(config-pmap)#class MAPNAME | Specifies the interesting traffic. |
Step 5: Apply Guaranteed Bandwidth and Maximum Packet Limits for Each Class
Step 6: Specify How Unclassified Traffic Is Handled
Step 7: Apply the Policy to an Interface
Router(config)# interface fastethernet 0/0 | Moves to interface configuration mode. |
Router(config-if)# service-policy output MARKINGPOLICY | Applies the marking policy to outbound traffic. |
Step 8: Verify Policy Configuration
Router# show policy-map interface fastethernet 0/0 | Displays the configurations and statistics of policy maps applied at fastethernet 0/0. |