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.
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). |
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.
<HUAWEI> system-view [~HUAWEI] acl 4000 [*HUAWEI-acl-L2-4000] quit [*HUAWEI] evpn vpn-instance evpn1 [*HUAWEI-evpn-instance-evpn1] filter-policy 4000 import
<HUAWEI> system-view [~HUAWEI] acl 4000 [*HUAWEI-acl-L2-4000] quit [*HUAWEI] evpn vpn-instance evpn1 [*HUAWEI-evpn-instance-evpn1] filter-policy 4000 export