Configuring inbound mbgp route filtering – H3C Technologies H3C S10500 Series Switches User Manual
Page 256

241
To do…
Use the command…
Remarks
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 or a peer group:
peer { group-name |
peer-address } route-policy
route-policy-name export
Reference an ACL to filter
advertisements to an IPv4 MBGP
peer or a peer group:
peer { group-name | ip-address }
filter-policy acl-number export
Reference an AS path ACL to filter
route advertisements to an IPv4
MBGP peer or a 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 or a peer group:
peer { group-name | ip-address }
ip-prefix ip-prefix-name export
Required
Use one of these commands
No outbound route filtering is
configured by default.
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.
If several filtering policies are configured, they are applied in the following sequence:
•
filter-policy import
•
peer filter-policy import
•
peer as-path-acl import
•
peer ip-prefix import
•
peer route-policy import
Only the routes that have passed all the configured policies can be advertised.
Follow these steps to configure MBGP route reception filtering policies:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—