< Home

if-match rd-filter

Function

The if-match rd-filter command creates a matching rule based on the RD filter.

The undo if-match rd-filter command deletes the matching rule based on the specified RD filter.

By default, no matching rule based on the RD filter is configured.

Product

Support

S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S

Supported.

S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI

Not supported.

Format

if-match rd-filter rd-filter-number

undo if-match rd-filter

Parameters

Parameter Description Value
rd-filter-number Specifies the number of an RD filter. The value is an integer ranging from 1 to 255.

Views

Route-policy view, Tunnel selector view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The if-match rd-filter command and the ip rd-filter command work together to filter routes based on RD attributes. For example:

  • If if-match rd-filter 1 is configured, but rd-filter 1 is not configured, then all current routes will be permitted.

  • If if-match rd-filter 1 is configured, and ip rd-filter 1 permit 1:1 has been configured, then routes with RD 1:1 will be permitted.

Prerequisites

The if-match rd-filter command must be run after the route-policy command is run.

Precautions

The routing policy matches routes using the RD filter. Routes that match the RD filter will be checked by other if-match clauses of this node. Routes that do not match the RD filter will be checked by the next node.

Example

# Define a matching rule to match an RD filter.

<HUAWEI> system-view
[HUAWEI] route-policy abc permit node 10
[HUAWEI-route-policy] if-match rd-filter 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >