R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference

196
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 attribute-policy commu
# In BGP IPv4 unicast address family view, create a summary route 1.1.0.0/16 in the BGP routing table,
a n d c o n f i g u r e B G P t o n o t s u m m a r i ze ro u t e 1.1.1.0 / 24 .
<Sysname> system-view
[Sysname] ip prefix-list spert deny 1.1.1.0 24
[Sysname] ip prefix-list spert permit 0.0.0.0 0 less-equal 32
[Sysname] route-policy srcrt permit node 0
[Sysname-route-policy-srcrt-0] if-match ip address prefix-list spert
[Sysname-route-policy-srcrt-0] quit
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 origin-policy srcrt
# In BGP IPv4 unicast address family view, create a summary route 1.1.0.0/16 in the BGP routing table,
and disable BGP to advertise the specific route 1.1.1.0/24.
<Sysname> system-view
[Sysname] ip prefix-list spert deny 1.1.1.0 24
[Sysname] ip prefix-list spert permit 0.0.0.0 0 less-equal 32
[Sysname] route-policy suprt permit node 0
[Sysname-route-policy-suprt-0] if-match ip address prefix-list spert
[Sysname-route-policy-suprt-0] quit
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 suppress-policy suprt
# In BGP-VPN IPv4 unicast address family view, create a summary route 1.1.0.0/16 in BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv4-family unicast
[Sysname-bgp-ipv4-vpn1] aggregate 1.1.0.0 255.255.0.0
# In BGP IPv6 unicast address family view, create a summary route 12::/64 in the IPv6 BGP routing
table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-ipv6] aggregate 12:: 64
Related commands
display bgp routing-table ipv4 unicast
display bgp routing-table ipv6 unicast
summary automatic
balance
Use balance to enable load balancing and specify the maximum number of BGP ECMP routes for load
balancing.
Use undo balance to disable load balancing.