BGP Configuration Commands
519
<SW8800> 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
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.
Example
# Use ACL 2000 to filter the routing information advertised by BGP.
[3Com-bgp] filter-policy 2000 export
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
Need help?
Do you have a question about the 8807 and is the answer not in the manual?
Questions and answers