The peer filter-policy import command configures an ACL-based policy for filtering BGP routes received from a specified peer group.
The undo peer filter-policy import command cancels this configuration.
By default, no filtering policy is set for a peer.
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IP address of an MBGP peer. |
The address is in dotted decimal notation. |
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, spaces not supported. The name must start with a letter or digit, and cannot contain only digits. |
Usage Scenario
The peer filter-policy import command is used to configure an ACL-based policy for filtering routes to be received from peers.
A proper basic ACL needs to be selected based on the address family of a peer.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 number 2003 [*HUAWEI-acl4-basic-2003] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 10 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer 1.1.1.1 enable [*HUAWEI-bgp-af-multicast] peer 1.1.1.1 filter-policy 2003 import