The peer generate-link-bandwidth command configures the local device to obtain the link bandwidth of a specified directly connected EBGP peer and generate an extended community attribute.
The undo peer generate-link-bandwidth command cancels the existing configuration.
By default, the local device is disabled from obtaining the link bandwidth of a specified directly connected EBGP peer.
Usage Scenario
If the actual link bandwidth needs to be obtained and dynamically updated based on the actual bandwidth when routes are available for load balancing, run the peer generate-link-bandwidth command to obtain the link bandwidth of directly connected EBGP peer, generate the extended community attribute, and update route information.
After a peer is added to a peer group, if the local device is enabled to obtain the link bandwidth of directly connected EBGP peers for the peer group, the peer inherits the configuration of the peer group. If the peer does not need to inherit the configuration of the peer group, disable the function of obtaining the link bandwidth of the directly connected EBGP peer.Precautions
If the peer connect-interface, peer ebgp-max-hop, or ttl command is not run, you can run the peer generate-link-bandwidth command to obtain the link bandwidth of the directly connected EBGP peer.
<HUAWEI> sys [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] peer 2001:db8:1::1 enable [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] peer 2001:db8:1::1 enable [*HUAWEI-bgp-af-ipv4] peer 2001:db8:1::1 generate-link-bandwidth