if-match rd-filter (tunnel-selector view)

Function

The if-match rd-filter command sets a filtering rule based on RD filters.

The undo if-match rd-filter command deletes a filtering rule based on RD filters.

By default, no filtering rule based on RD filters is set.

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 1024.

Views

Tunnel-selector view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

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 the if-match rd-filter 1 command is configured, but the rd-filter 1 command is not configured, all routes will be permitted.
  • If the if-match rd-filter 1 and ip rd-filter 1 permit 1:1 commands are configured, routes with RD 1:1 will be permitted.

Configuration Impact

Routes are filtered based on RD attributes. The routes with the specified RD attributes are permitted and those without the specified RD attributes are denied.

Example

# Define a filtering rule in the tunnel-selector view to match an RD filter.
<HUAWEI> system-view
[~HUAWEI] ip rd-filter 1 permit 100:1
[*HUAWEI] tunnel-selector tps permit node 10
[*HUAWEI-tunnel-selector] if-match rd-filter 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >