228
NOTE:
After you configure the
peer
default-route-advertise
command, the router sends a default route
with the next hop as itself to the specified MBGP peer or peer group, whether the default route is
available or not in the routing table.
Configuring outbound MBGP route filtering
If several filtering policies are configured, they are applied in the following sequence:
1. filter-policy
export
2.
peer filter-policy export
3.
peer as-path-acl export
4.
peer ip-prefix export
5.
peer route-policy export
Only the routes that have passed all the configured policies can be advertised.
To configure BGP route distribution 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 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 list 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.
By default, no outbound route
filtering is configured.