< Home

add (DNS transparent proxy policy view)

Function

The add command adds member interfaces for DNS transparent proxy routing.

The undo add command deletes member interfaces of DNS transparent proxy routing.

Format

add { interface interface-type interface-number | interface-group { interface-group-name | isp isp-name } } [ priority priority | weight weight ] *

undo add { interface interface-type interface-number | interface-group { interface-group-name | isp isp-name } } [ priority | weight ] *

Parameters

Parameter Description Value
interface-type interface-number

Specifies the type and number of an interface.

-

interface-group-name

Specifies the name of an interface group.

The value must be the name of an existing interface group.

isp isp-name

Specifies the ISP name.

-

priority priority

Specifies the member interface priority.

The value is an integer ranging from 1 to 8. The default value is 1.

A larger value indicates a higher priority.

weight weight

Specifies the member interface weight.

The value is an integer ranging from 1 to 10. The default value is 1.

Views

DNS transparent proxy policy view

Default Level

2: Configuration level

Usage Guidelines

Before you configure a member interface for DNS transparent proxy routing, you must run the gateway gateway-address [ route { enable | disable } ] command to specify a gateway address for the interface.

Member interfaces of DNS transparent proxy routing can be physical or logical interfaces. GigabitEthernet interfaces and their subinterfaces, Eth-Trunk interfaces and their subinterfaces, Tunnel interfaces, VLANIF interfaces, and Dialer interfaces can also function as member interfaces of DNS transparent proxy routing.

A member interface of DNS transparent proxy routing can be an interface or an interface group. Adding an interface group adds all interfaces in the group in one action. Member interfaces of DNS transparent proxy routing are single interfaces, but using an interface group saves the configuration time.

When the DNS transparent proxy routing mode is active/standby backup by link priority or load balancing by link weight, you need to specify priority or weight for the member interface of DNS transparent proxy routing. The interface with a higher priority is preferentially used for forwarding traffic, and the interface with a higher weight forwards more traffic.

After you specify the priority for the interface group, all interfaces in the interface group have the same priority. After you specify the weight for the interface group, all interfaces in the interface group share the weight.

Example

# Add GigabitEthernet 0/0/1 as a member interface of DNS transparent proxy routing and set the interface priority and weight both to 2.

<sysname> system-view
[sysname] dns-transparent-policy
[sysname-policy-dns] add interface GigabitEthernet 0/0/1 priority 2 weight 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >