dhcpv6-server algorithm

Function

The dhcpv6-server algorithm command configures the algorithm for selecting DHCPv6 servers.

The undo dhcpv6-server algorithm command restores the default setting.

By default, the algorithm for selecting DHCPv6 servers is master/backup.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcpv6-server algorithm { master-backup | loading-share | polling [ check-loose ] }

undo dhcpv6-server algorithm

Parameters

Parameter Description Value
master-backup

Configures the algorithm for selecting DHCPv6 servers as master/backup.

-

loading-share

Configures the algorithm for selecting DHCPv6 servers as load balancing.

-

polling

Configures the algorithm for selecting DHCPv6 servers as polling.

-

check-loose

Configures the algorithm as loose check.

-

Views

DHCPv6 server group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcpv6 write

Usage Guidelines

Usage Scenario

When there is more than one DHCPv6 server in a DHCPv6 server group, you can configure the algorithm for selecting DHCPv6 servers as load balancing, master/backup or polling.

  • Load balancing: The device distributes the load based on the weights of DHCPv6 servers.
  • Master/backup: The first server that you configure is the master server and the others are backup servers.
  • Polling: When multiple servers are configured, the device sends Solicit, Request, Rebind, and Confirm messages to all servers and selects the server that first responds to the messages for subsequent message exchanges.

Configuration Impact

The parameter weight configured in the dhcpv6-server command is valid only if the parameter loading-share is configured in the dhcpv6-server algorithm command.

Precautions

If the IP address of the link-address route is used as the source IP address and the DHCP server is configured with the polling mode:

  • When a server is configured in the DHCPv6 server group, regardless of whether the polling mode is configured, only the configured server sends packets. Information about only this server, such as the IP address and VPN information, is saved in the user table.
  • If multiple DHCPv6 servers are configured in the DHCPv6 server group and both the DHCPv6 server with the same VPN information as the user and the DHCPv6 server with different VPN information from the user exist, the response packets sent by the DHCPv6 servers to the BRAS contain the VPN information about the user. Therefore, the user considers the DHCPv6 server with the same VPN information as the user a reachable one and records the VPN information in the DHCPv6 server information of the user table. If the BRAS receives renew packets, the DHCPv6 server information saved in user entries is sent to the servers through packets. If the DHCPv6 server is unreachable, lease renewal fails, and rebind packets need to be sent to renew the lease.
  • If multiple servers are configured in the DHCPv6 server group and the VPN information about the servers is different from that of the user, the response packets sent by the servers to the BRAS contain the user's VPN information and the BRAS matches the user's VPN information and the server's VPN information. If the match fails, the user fails to go online.

Example

# Set the algorithm for selecting DHCPv6 servers as load balancing in the view of a DHCPv6 server group named huawei.
<HUAWEI> system-view
[~HUAWEI] dhcpv6-server group huawei
[*HUAWEI-dhcpv6-server-group-huawei] dhcpv6-server algorithm loading-share
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >