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

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 { peerIpv4Addr | peerIpv6Addr } generate-link-bandwidth

peer { peerIpv4Addr | peerIpv6Addr } generate-link-bandwidth disable

undo peer { peerIpv4Addr | peerIpv6Addr } generate-link-bandwidth

undo peer { peerIpv4Addr | peerIpv6Addr } generate-link-bandwidth disable

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

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-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If you want to obtain the actual link bandwidth for load balancing and dynamically update the bandwidth when the actual bandwidth changes, run the peer generate-link-bandwidth command to obtain the link bandwidth of directly connected EBGP peers, generate extended community attributes, and update routing information.

After a peer is added to a peer group, if the peer group is enabled to obtain the link bandwidth of directly connected EBGP peers, the peer inherits the configuration of the peer group. If a peer does not need to inherit the configuration of its peer group, the peer must be disabled from obtaining the link bandwidth of its 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 10.1.2.1 as-number 200
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] peer 10.1.2.1 enable
[*HUAWEI-bgp-af-ipv6] peer 10.1.2.1 generate-link-bandwidth
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >