< Home

weight-rule

Function

The weight-rule weightrr command configures the weight rule in the weighted round robin mode.

The weight-rule roundrobin command configures the weight rule in the round robin mode.

Format

weight-rule weightrr { ip-address weight-value } &<1-8>

weight-rule roundrobin ip-address &<1-8>

undo weight-rule { weightrr | roundrobin | all }

Parameters

Parameter Description Value
weightrr Indicates the weighted round robin mode. -
roundrobin Indicates the round robin mode. -
ip-address Specifies the IP address. You can configure a maximum of eight IP addresses at a time. The value is in dotted decimal notation.
weight-value Specifies the weight of the IP address. The value is an integer ranging from 1 to 64.

Views

Smart DNS group view

Default Level

2: Configuration level

Usage Guidelines

In the round robin mode, the default weight of each IP address is 32.

Example

# Configure a weight rule in the round robin mode.

<sysname> system-view
[sysname] dns-smart enable
[sysname] dns-smart group 1 type multi
[sysname-dns-smart-group-1] metric roundrobin
[sysname-dns-smart-group-1] weight-rule roundrobin 3.3.3.3 4.4.4.4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic