R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

217
Use routing policy, ACL, AS-path ACL, or IP prefix list to filter routing information received by the
specified peer or peer group.
If several filtering policies are configured, they are applied in the following sequence:
1. filter-policy import
2. peer filter-policy import
3. peer as-path-acl import
4. peer ip-prefix import
5. peer route-policy import
Only routes passing all the configured policies can be received.
To configure BGP route reception filtering policies:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view or BGP-VPN
instance view.
Enter BGP view:
bgp as-number
Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either method.
3. Configure BGP route
reception filtering policies.
Filter incoming routes from all peers
with an ACL or IP prefix list:
filter-policy { acl-number | ip-prefix
ip-prefix-name } import
Reference a routing policy to filter
routing information from a peer or
peer group:
peer { group-name | ip-address }
route-policy route-policy-name
import
Reference an ACL to filter routing
information from a peer or peer
group:
peer { group-name | ip-address }
filter-policy acl-number import
Reference an AS path ACL to filter
routing information from a peer or
peer group:
peer { group-name | ip-address }
as-path-acl as-path-acl-number
import
Reference an IP prefix list to filter
routing information from a peer or
peer group:
peer { group-name | ip-address }
ip-prefix ip-prefix-name import
Use at least one method.
By default, no route reception
filtering is configured.