Configuring inbound mbgp route filtering – H3C Technologies H3C S12500 Series Switches User Manual
Page 239

223
Step Command
Remarks
4.
Configure BGP route
distribution filtering policies.
•
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
Use at least one method.
By default, no outbound route
filtering is configured.
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: