< Home

if-match application

Function

The if-match application command configures a matching rule based on the application name in a traffic classifier.

The undo if-match application command deletes a matching rule based on the application name in a traffic classifier.

By default, no matching rule based on the application name is configured in a traffic classifier.

Format

if-match application name appname

undo if-match application name

Parameters

Parameter

Description

Value

name appname

Specifies the name of an application.

The value is a string of characters. The value depends on the applications supported in the signature database. To check the supported application names, run the display application command.

Views

Traffic classifier view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the if-match application command to classify packets based on the application name of packets. This ensures that the switch processes packets matching the same traffic classifier identically.

Precautions

If you run the if-match application command in the same traffic classifier view multiple times, only the latest configuration takes effect.

A traffic policy containing such a traffic classifier can be applied only to the inbound direction globally or on a physical or a VLANIF interface.

Both the traffic classifier defining if-match application and traffic classifiers defining other matching rules (excluding if-match discard) can take effect. Examples are as follows:
  • A packet matches two pairs of traffic classifiers and traffic behaviors defined in the same traffic policy, and only one traffic classifier contains if-match application. (The other traffic classifier does not contain if-match discard or if-match application.) In this case, both pairs of traffic classifiers and traffic behaviors take effect for the packet.
  • A packet matches two traffic policies, and a traffic classifier contains if-match application in only one of the traffic policies. (The other traffic policy does not contain if-match discard or if-match application.) In this case, both traffic policies take effect for the packet.

Example

# Configure a matching rule based on the application name BT in the traffic classifier c1.

<HUAWEI> system-view
[HUAWEI] traffic classifier c1
[HUAWEI-classifier-c1] if-match application name BT
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >