![Huawei S6700 Series Configuration Manual Download Page 628](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517628.webp)
Step 3
Run:
filter-policy
{
acl-number
|
acl-name
acl-name
|
ip-prefix
ip-prefix-name
|
route-
policy
route-policy-name
}
export
[
protocol
[
process-id
] ]
The filtering policy is configured for routes advertised by IS-IS.
----End
10.6.5 Filtering Routes Advertised by BGP
By applying filters, you can control the advertisement of BGP routes.
Procedure
l
Filtering the Advertised Routes
Do as follows on the switch that runs BGP:
1.
Run:
system-view
The system view is displayed.
2.
Run:
bgp
as-number
The BGP view is displayed.
3.
Run:
ipv4-family
unicast
The IPv4 unicast address family view is displayed.
4.
Run:
filter-policy
{
acl-number
|
acl-name
acl-name
|
ip-prefix
ip-prefix-
name
}
export
[
protocol
[
process-id
] ]
The filtering policy is configured for routes advertised by BGP.
For the routes imported by BGP, only the routes that meet matching rules can be added
to the BGP local routing table and advertised to the BGP peers.
–
If
protocol
is specified, only the routes of the specified protocol are filtered.
–
If the parameter is not specified, all the routes advertised by BGP are filtered,
including the imported routes and the local routes advertised through the
network
command.
NOTE
The
filter-policy export
command of different protocols have different affect ranges on routes
advertisement:
l
For the link state protocol, only the routes imported are filtered.
l
For the DV protocol, the routes imported and the routes discovered by the protocols are
filtered.
l
Filtering Routes Advertised to the Peers
Do as follows on the switch that runs BGP:
1.
Run:
system-view
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
609