Command Reference Guide
3Com Router 5000 Family and Router 6000 Family peer filter-policy ● 239
Command Reference
peer filter-policy
Purpose Use the peer filter-policy import command to configure BGP to filter
routes received from the peer (group) based on the ACL.
Use the undo peer filter-policy import command to cancel filtering of
the received routes based on the ACL.
Use the peer filter-policy export command to configure BGP to filter
routes advertised to the peer (group) based on the ACL.
Use the undo peer filter-policy export command to cancel filtering of
the advertised routes based on the ACL.
Syntax peer { group-name | peer-address } filter-policy acl-number import
undo peer { group-name | peer-address } filter-policy acl-number import
peer group-name filter-policy acl-number export
undo peer group-name filter-policy acl-number export
Parameters group-name
Specifies the name of the peer group.
peer-address
Specifies the IP address of the peer.
list-number
Specifies the IP ACL number.
import
Applies the filter-policy to received routes.
export
Applies the filter-policy to advertised routes.
Default By default, no filtering is applied to routes advertised or received.
Example Set the filter-policy list of peer group test.
[3Com ] acl number 2003
[3Com -acl-basic-2003] rule 0 deny source 98.12.0.0 0.0.0.255
[3Com -acl-basic-2003] quit
[3Com ] bgp 100
[3Com -bgp] peer test as-number 100
[3Com -bgp] peer test filter-policy 2003 import
View This command can be used in the following views:
■ BGP view
■ IPv4 Multicast Sub-Address Family view
Related Commands ■ ip as-path-acl
■ peer as-path-acl