Step
4.
Configure BGP route
distribution filtering policies.
Configuring inbound MBGP route filtering
By configuring MBGP route reception filtering policies, you can filter out unqualified routes from an
MBGP peer or peer group. Members of a peer group can have different route reception filtering policies
from the 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 the routes that have passed all the configured policies can be advertised.
To configure MBGP route reception filtering policies:
Command
•
Configure the filtering of
redistributed routes:
filter-policy { acl-number |
ip-prefix ip-prefix-name }
export [ direct | isis process-id
| ospf process-id | rip
process-id | static ]
•
Apply a routing policy to
advertisements to an IPv4
MBGP peer/peer group:
peer { group-name |
peer-address } route-policy
route-policy-name export
•
Reference an ACL to filter
advertisements to an IPv4
MBGP peer/peer group:
peer { group-name |
ip-address } filter-policy
acl-number export
•
Reference an AS path list to
filter route advertisements to an
IPv4 MBGP peer/peer group:
peer { group-name |
ip-address } as-path-acl
as-path-acl-number export
•
Reference an IP prefix list to
filter route advertisements to an
IPv4 MBGP peer/peer group:
peer { group-name |
ip-address } ip-prefix
ip-prefix-name export
225
Remarks
Use at least one approach.
By default, no outbound route
filtering is configured.