
206
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 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
Configure at least one
command.
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.
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