< Home

metric (smart DNS group view)

Function

The metric command configures the traffic allocation mode.

Format

metric { out-interface | weightrr | roundrobin }

Parameters

Parameter Description Value
out-interface Indicates the ISP egress mode. -
weightrr Indicates the weighted round robin algorithm. -
roundrobin Indicates the round robin algorithm. -

Views

Smart DNS group view

Default Level

2: Configuration level

Usage Guidelines

The ISP egress mode is used by default.

After the metric command is executed, the smart DNS mapping table configured under the smart DNS group is cleared. You need to run the out-interface map to reconfigure the mapping table.

Example

# Set the traffic allocation mode to round robin.

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