if-match ip route-originator

Function

The if-match ip route-originator command configures an NG MVPN route filtering rule that is based on the IP addresses of route advertising devices.

The undo if-match ip route-originator command restores the default configuration.

By default, no NG MVPN route filtering rule that is based on the IP addresses of route advertising devices is configured.

Format

if-match ip route-originator { ip-prefix ip-prefix-name | acl { acl-number | acl-name } }

undo if-match ip route-originator

Parameters

Parameter Description Value
ip-prefix ip-prefix-name

Specifies the name of an IPv4 prefix list.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

acl acl-number

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

acl acl-name

Specifies the name of a named ACL.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

In segmented NG MVPN scenarios, to enable a device to match NG MVPN routes based on the IP addresses of the route advertising devices, run the if-match ip route-originator command.

The relationship between the if-match clauses in a node of a route-policy is "AND". A route must match all the rules before the action defined by the apply clause is taken. If no if-match clause is specified, all routes will match the node in the route-policy.

Prerequisites

A route-policy has been configured using the route-policy command.

Example

# Configure an NG MVPN route filtering rule that is based on the IP addresses of route advertising devices.
<HUAWEI> system-view
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] route-policy policy permit node 10
[*HUAWEI-route-policy] if-match ip route-originator acl 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >