Command Reference Guide
3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 5 BGP Configuration Commands
3Com Corporation
5-31
5.1.30 filter-policy export
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]
undo filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
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.
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 filtering to the advertised
routes.
By default, the advertised routing information is not filtered.
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.
Example
# Use acl 2003 to filter all routes advertised by BGP.
[3Com -bgp] filter-policy 2003 export
5.1.31 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










