Command Reference Guide
3Com Router 5000 Family and Router 6000 Family filter-policy export ● 137
Command Reference
filter-policy export
Purpose 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 filtering to the
advertised routes.
Syntax filter-policy { acl-number | ip-prefix ip-prefix-name } export [
protocol ]
undo filter-policy { acl-number | ip-prefix ip-prefix-name } export [
protocol ]
Parameters acl-number
Specifies the number of ACL matching the destination
address field of routing information, ranging from
2000 to 3999.
ip-prefix-name
Specifies the name of the address prefix list matching
the destination address field of routing information,
ranging from 1 to 19.
protocol
Specifies routing information of which kind of routing
protocol to be filtered. It can be direct, ospf, ospf-ase,
ospf-nssa, isis, rip, and static at present.
Default By default, the advertised routing information is not filtered.
Example Use acl 2003 to filter all routes advertised by BGP.
[3Com -bgp] filter-policy 2003 export
View This command can be used in the following views:
■ BGP Unicast view
■ BGP Multicast view
■ VPNv4 view
■ VPN Instance view
Description If the argument protocol is specified, only routes redistributed from the specified
protocol are filtered, and routes redistributed from other protocols are not affected. If
the parameter
protocol is not specified, routes redistributed from any protocol will
be filtered.