peer generate-link-bandwidth (BGP-IPv4 unicast address family view)(IPv6)

Function

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.

Format

peer peerIpv6Addr generate-link-bandwidth

peer peerIpv6Addr generate-link-bandwidth disable

undo peer peerIpv6Addr generate-link-bandwidth

undo peer peerIpv6Addr generate-link-bandwidth disable

Parameters

Parameter Description Value
peerIpv6Addr

Specifies the IPv6 address of a peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

disable

Disables a device to obtaining the bandwidth of directly connected EBGP neighbor interfaces.

-

Views

BGP-IPv4 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

Example

# Configure the local device to obtain the link bandwidth of a specified directly connected EBGP peer and generate an extended community attribute.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >