Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches Chapter 5 BGP Configuration Commands
Huawei Technologies Proprietary
5-28
Example
# Use ACL 2000 to filter the routing information advertised by BGP.
[Quidway-bgp] filter-policy 2000 export
5.1.28 filter-policy import
Syntax
filter-policy gateway ip-prefix-name import
undo filter-policy gateway ip-prefix-name import
filter-policy { acl-number | ip-prefix ip-prefix-name } import
undo filter-policy { acl-number | ip-prefix ip-prefix-name } import
View
BGP view
Parameter
acl-number: Number of IP access control list, in the range of 2000 to 3999.
ip-prefix-name: Name of an address prefix list. It is used for filtering routing information
by destination address. Its length ranges from 1 to 19.
gateway ip-prefix-name: Name of a peer-router address prefix list. It is used for filtering
routing information by peer-router address. Its length ranges from 1 to 19.
Description
Use the filter-policy gateway import command to filter the learned routing information
advertised by the peer with the specified address.
Use the undo filter-policy gateway import command to cancel the filtration to the
routing information advertised by the peer with specified address.
Use the filter-policy import command to filter the received global routing information.
Use the undo filter-policy import command to remove the filtration to the received
global routing information.
By default, filtration to the received routing information is not configured.
This command can be used to filter the routes received by BGP and determines
whether to add the routes to the BGP routing table.
Example
# Use ACL 2000 to filter the routing information received by BGP.
[Quidway-bgp] filter-policy 2000 import