weight(IPv6 address pool view)

Function

The weight command configures a weight for an IPv6 address pool.

The undo weight command restores the default configuration.

By default, the weight of an IPv6 address pool is 5.

This command is supported only on the NetEngine 8000 F1A.

Format

weight weight-value

undo weight [ weight-value ]

Parameters

Parameter Description Value
weight-value

Specifies a weight for an IPv6 address pool.

The value is an integer ranging from 0 to 100.

If the weight is set to 0, the address pool is not used for address assignment.

Views

IPv6 address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipv6pool write

Usage Guidelines

Usage Scenario

By default, IPv6 addresses are assigned in the sequence the address pools are bound to a domain. Specifically, one address pool is used only after addresses in the preceding address pool are used up. This address assignment mode results in unbalanced address pool usage. Moreover, the BRAS is unable to know the number of available addresses in a remote address pool on a DHCPv6 server in real time. As a result, the remote address pool may still have available addresses on the BRAS but actually does not have any assignable addresses on the DHCPv6 server. In this case, clients may fail to obtain IPv6 addresses. To resolve the problems, the algorithm for assigning addresses from address pools has been optimized, so that a device can be configured to assign addresses from IPv6 remote address pools based on weights of the address pools. To configure a weight for an IPv6 address pool, run the **weight ** command.

Precautions

In VS mode, this command is supported only by the admin VS.

  • The weight configured for an IPv6 address pool using the weight command takes effect only after the ipv6-pool algorithm loading-share remote command is run in the system view to configure a device to assign addresses from IPv6 remote address pools based on their weights.
  • The greater the weight, the higher the priority of the address pool. When remote address pools are selected based on their weights, the device reads the list of available address pools and then divides the number of addresses that have been assigned from an address pool by the weight of the address pool to obtain a value for each address pool. Then the device selects the address pool with the smallest value to assign IPv6 addresses. If the address pool with the greatest weight differs from the address pool selected based on the preceding algorithm, the latter is selected as the remote address pool.
  • This function is applicable to IPv6 remote address pools and local rui-slave address pools. For local rui-slave address pools:
  • If the status of the DHCPv6 server to which a local rui-slave address pool is bound is Up, the address pool functions as a remote address pool.
  • If the status of the DHCPv6 server to which a local rui-slave address pool is bound is Down, the address pool functions as a local address pool.

Example

# Configure the weight 50 for an IPv6 address pool named test.
<HUAWEI> system-view
[~HUAWEI] ipv6 pool test bas remote
Info: Create an ipv6 pool.
[*HUAWEI-ipv6-pool-test] commit
[~HUAWEI-ipv6-pool-test] weight 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >