For how to configure an IP prefix list, routing policy, and AS path list, see
policies."
Configuring BGP route distribution filtering policies
You can use the following methods to configure BGP route distribution filtering policies:
•
Use ACL or IP prefix list to filter routing information advertised to all peers.
•
Use routing policy, ACL, AS path list, or IP prefix list to filter routing information advertised to the
specified peer or peer group.
You can configure a filtering policy as needed. If several filtering policies are configured, they are
applied in the following sequence:
1.
filter-policy export
2.
peer filter-policy export
3.
peer as-path-acl export
4.
peer ip-prefix export
5.
peer route-policy export
Only routes passing the first policy can go to the next, and only routes passing all the configured
policies can be advertised.
To configure BGP route distribution filtering policies:
Step
Enter system view.
1.
Enter BGP view or
2.
BGP-VPN instance view.
Command
system-view
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
190
"Configuring routing
Remarks
N/A
Use either approach.