Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Classifying Packets Based on Their Destination Address

This example shows how to classify packets based on their destination address by using a multifield classifier.

Requirements

No special configuration beyond device initialization is required before configuring this example.

Overview

In this example you configure a multifield classifier (firewall filter) that ensures that all IPv4 packets destined for the 10.10.10.0/24 network are placed into the platinum forwarding class. This assignment occurs regardless of the received CoS bit values in the packet.

You then apply this filter to the inbound interface so-1/2/2.0 and verify your configuration is attached to the correct interface, issue the show interfaces filters command..

Configuration

CLI Quick Configuration

To quickly configure the multifield classifer (firewall filter), copy the following commands to a text file, remove any line breaks, and then paste the commands into the CLI.

Configuring Firewall Filter

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode. To configure the multifield classifier (firewall filter):

  1. Create and configure the multifield classifier (firewall filter).

  2. Apply the classifier to the interface.

Results

Confirm your configuration by entering the show firewall and show interfaces commands from configuration mode. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

If you are done configuring the device, enter commit from configuration mode.