The peer filter-policy export command configures an ACL-based policy for filtering BGP routes to be advertised to a specified peer group.
The undo peer filter-policy export command cancels this configuration.
By default, no filtering policy is set for a peer group.
Parameter | Description | Value |
---|---|---|
group-name |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
acl-number |
Specifies the number of a basic ACL. |
The value is an integer ranging from 2000 to 2999. |
export |
Filters routes to be advertised. |
- |
acl-name acl-name |
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). |
Usage Scenario
The peer filter-policy export command is used to configure an ACL-based policy for filtering routes to be advertised to a peer group.
A proper basic ACL needs to be selected based on the address family of a peer group.Configuration Impact
If the peer filter-policy export 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 export command is mutually exclusive with the peer route-filter export commands.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] group test [*HUAWEI-bgp-vpna] peer test filter-policy 2001 export <HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] acl 2001 [*HUAWEI-acl4-basic-2001] rule permit [*HUAWEI-acl4-basic-2001] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpna [*HUAWEI-bgp-instance-vpna] group test [*HUAWEI-bgp-instance-vpna] quit [*HUAWEI-bgp] ipv4-labeled-unicast vpn-instance vpna [*HUAWEI-bgp-labeled-vpna] peer test enable [*HUAWEI-bgp-labeled-vpna] peer test filter-policy 2001 export