filter-policy (EVPN instance view)

Function

The filter-policy import command configures an EVPN instance to filter received MAC advertisement routes.

The undo filter-policy import command cancels the filtering of received MAC advertisement routes.

The filter-policy export command configures an EVPN instance to filter MAC advertisement routes to be sent.

The undo filter-policy export command cancels the filtering of MAC advertisement routes to be sent.

By default, an EVPN instance does not filter MAC routes.

Format

filter-policy { acl-number | acl-name acl-name } { import | export }

undo filter-policy [ acl-number | acl-name acl-name ] { import | export }

Parameters

Parameter Description Value
acl-number

Specifies a Layer 2 ACL number.

The value is an integer ranging from 4000 to 4999.

acl-name 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

BD EVPN view, EVPN instance view, VPWS-EVPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To allow an EVPN instance to filter MAC advertisement routes received from other PEs, run the filter-policy import command.

To allow an EVPN instance to filter MAC advertisement routes to be sent to other PEs, run the filter-policy export command.

This helps control and manage MAC advertisement routes.

Configuration Impact

If the command is run more than once, the latest configuration overrides the previous one.

Example

# Configure EVPN instance evpn1 to use ACL 4000 to filter received MAC advertisement routes.
<HUAWEI> system-view
[~HUAWEI] acl 4000
[*HUAWEI-acl-L2-4000] quit
[*HUAWEI] evpn vpn-instance evpn1
[*HUAWEI-evpn-instance-evpn1] filter-policy 4000 import
# Configure EVPN instance evpn1 to use ACL 4000 to filter MAC advertisement routes to be sent.
<HUAWEI> system-view
[~HUAWEI] acl 4000
[*HUAWEI-acl-L2-4000] quit
[*HUAWEI] evpn vpn-instance evpn1
[*HUAWEI-evpn-instance-evpn1] filter-policy 4000 export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >