< Home

load-balance flow hash (DNS transparent proxy policy view)

Function

The load-balance flow hash command sets the hash parameters for DNS transparent proxy routing.

Format

load-balance flow hash { destination-ip | destination-port | source-ip | source-port } *

Parameters

Parameter Description Value
destination-ip

Configures destination IP address as a part of hash input.

-

destination-port

Configures destination port as a part of hash input.

-

source-ip

Configures source IP address as a part of hash input.

-

source-port

Configures source port as a part of hash input.

-

Views

DNS transparent proxy policy view

Default Level

2: Configuration level

Usage Guidelines

The default hash input for DNS transparent proxy routing is source IP address.

You cannot set the hash input for DNS transparent proxy routing on the web UI, but you can use the default setting.

When multiple outbound interfaces are available for DNS transparent proxy routing, the device will select a member interface as the outbound interface based on the hash result. For example, when the DNS transparent proxy routing mode is load balancing by link bandwidth and the links of the two interfaces have the same bandwidth and are both not overloaded, the FW will select one of the interfaces as the outbound interface based on the hash result.

When the device has two equal-cost routes with imbalanced loads, may need to set the hash input to source IP address, source port, destination IP address, and destination port.

Example

# Set the hash input to source IP address, source port, destination IP address, and destination port.

<sysname> system-view
[sysname] dns-transparent-policy
[sysname-policy-dns] load-balance flow hash destination-ip destination-port source-ip source-port
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >