209
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter BGP view.
bgp
as-number
N/A
3. Enter BGP IPv6 unicast
address family view.
address-family ipv6
[
unicast
] N/A
4. Specify the maximum
number of routes that a
router can receive from a
peer or peer group.
peer
{ group-name | ipv6-address
[ prefix-length ] }
route-limit
prefix-number [ {
alert-only
|
discard
|
reconnect
reconnect-time } |
percentage-value ] *
By default, the number of routes
that a router can receive from a
peer or peer group is not limited.
Configuring BGP route filtering policies
Configuration prerequisites
Before you configure BGP routing filtering policies, configure the following filters used for route
filtering as needed:
• ACL (see ACL and QoS Configuration Guide).
• Prefix list (see "Configuring routing policies").
• Routing policy (see "Configuring routing policies").
• AS path list (see "Configuring routing policies").
Configuring BGP route distribution filtering policies
To configure BGP route distribution filtering policies, use the following methods:
• Use an ACL or prefix list to filter routing information advertised to all peers.
• Use a routing policy, ACL, AS path list, or prefix list to filter routing information advertised to a
peer or peer group.
If you configure multiple filtering policies, apply them in the following sequence:
1. filter-policy export
2. peer filter-policy export
3. peer as-path-acl export
4. peer prefix-list export
5. peer route-policy export
Only routes passing all the configured policies can be advertised.
To configure BGP route distribution filtering policies (IPv4):
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance
view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A