Keywords Function
attribute-policy
Sets attributes except the AS_PATH attribute for the summary route. The same work
can be done by using the
peer route-policy
command.
Description
Use
aggregate
to create a summary route in the BGP routing table.
Use
undo aggregate
to remove a summary route.
By default, no summary route is configured.
The output interface of a BGP summary route is Null 0. With route summarization, BGP advertises
fewer routes to its peers. A summary route must not be optimal; otherwise, BGP will fail to forward
the packets matching the route. If a summarized specific route has the same mask as the summary
route but has a lower priority, the summary route becomes the optimal route. In this case, you must
change the priority of the summary or the specific route to make the specific route optimal.
Examples
# In BGP view, create a summary of 192.213.0.0/16 in the BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] aggregate 192.213.0.0 255.255.0.0
# In BGP-VPN instance view, create a summary of 192.213.0.0/16 in BGP routing table. (The VPN
has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] aggregate 192.213.0.0 255.255.0.0
balance (BGP/BGP-VPN instance view)
Syntax
balance
number
undo balance
View
BGP view, VPN instance view
Default level
2: System level
Parameters
number
: Number of BGP routes for load balancing, in the range of 1 to 8. When it is set to 1, load
balancing is disabled.
Description
Use
balance
to configure the number of BGP routes for load balancing.
Use
undo balance
to disable load balancing.
By default, no load balancing is configured.
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements
load balancing using route selection rules.
Related commands:
display bgp routing-table
.
188