The peer filter-policy import command configures an ACL-based policy for filtering BGP routes received from a specified peer.
The undo peer filter-policy import command cancels this configuration.
By default, no filtering policy is set for a peer.
Parameter | Description | Value |
---|---|---|
peerIpv6Addr |
Specifies the IPv6 address of a BGP peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
aclNum |
Specifies the number of a basic ACL. |
The value is an integer ranging from 2000 to 2999. |
acl-name aclname |
Specifies the name of a named basic 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). |
Configuration Impact
If the peer filter-policy import command is run multiple times, the latest configuration overwrites the previous one.
Precautions
When the rule command is run to configure rules for a named ACL, only the source address range specified by source and the time period specified by time-range take effect.
The peer route-filter import command is mutually exclusive with the peer route-filter import commands.<HUAWEI> system-view [~HUAWEI] acl 2000 [*HUAWEI-acl4-basic-2001] rule permit [*HUAWEI-acl4-basic-2001] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 200 [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] peer 2001:DB8:1::1 enable [*HUAWEI-bgp-af-ipv4] peer 2001:DB8:1::1 filter-policy 2001 import