Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 5 BGP Configuration Commands
Huawei Technologies Proprietary
5-27
Peer: 200.1.7.2+1062
Advertised routes total: 516
Peer: 150.1.1.2+179
Advertised routes total: 346
Peer: 2 133.1.1.2+179
Advertised routes total: 116
# Display the routing information received by all BGP peers.
<Quidway> display bgp routing-table received statistic
Peer: 200.1.7.2+1062
Received routes total: 213
Peer: 150.1.1.2+179
Received routes total: 423
Peer: 2 133.1.1.2+179
Received routes total: 123
5.1.27 filter-policy export
Syntax
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
routing-protocol
]
undo filter-policy
{
acl-number
|
ip-prefix ip-prefix-name
}
export
[
routing-protocol
]
View
BGP view
Parameter
acl-number
: Number of IP access control list, in the range of 2000 to 3999.
ip-prefix-name
: Name of ip prefix list. Its length ranges from 1 to 19.
routing-protocol
: Specified protocols advertising routing information which include
direct, ospf, ospf-ase, ospf-nssa, rip, isis and static.
Description
Use the
filter-policy export
command to filter the advertised routes and only the
routes passing the filter can be advertised by BGP.
Use the
undo filter-policy export
command to cancel the filtration to the advertised
routes.
By default, the advertised routes are not filtered.
If the
protocol
argument
is specified, only the imported route generated by the specified
protocol is filtered and the imported routes generated by other protocols are not
affected. If the
protocol
argument
is not specified, the imported route generated by any
protocol will be filtered.