229
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:
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:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enter IPv4 MBGP address
family view.
ipv4-family multicast
N/A
4.
Configure MBGP route
reception filtering policies.
•
Filter incoming routes using
an ACL or IP prefix list:
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
import
•
Reference a routing policy to
routes from an IPv4 MBGP
peer or a peer group:
peer
{
group-name
|
ip-address
}
route-policy
policy-name
import
•
Reference an ACL to filter
routing information from an
IPv4 MBGP peer or a peer
group:
peer
{
group-name
|
ip-address
}
filter-policy
acl-number
import
•
Reference an AS path list to
filter routing information from
an IPv4 MBGP peer or a 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
an IPv4 MBGP peer or a peer
group:
peer
{
group-name
|
ip-address
}
ip-prefix
ip-prefix-name
import
Configure at least one command.
No inbound route filtering is
configured by default.
5.
Specify the maximum
number of routes that can be
received from an IPv4 MBGP
peer or a peer group.
peer
{
group-name
|
ip-address
}
route-limit
limit
[
percentage
]
Optional.
The number is unlimited by
default.