< Home

ddns source-interface

Function

The ddns source-interface command configures the source interface that sends DDNS update requests on a DDNS client and uses the IP address of this interface as the source IP address of DDNS update requests.

The undo ddns source-interface command deletes the configured source interface that sends DDNS update requests on a DDNS client.

By default, no source interface that sends DDNS update requests is configured on a DDNS client, and the IP address of the interface to which a DDNS policy is applied is used as the source IP address of DDNS update requests.

Format

ddns source-interface interface-type interface-number

undo ddns source-interface

Parameters

Parameter Description Value
interface-type interface-number

Specifies the source interface of DDNS packets:

  • interface-type indicates the interface type.
  • interface-number indicates the interface number.
-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a NAT device is in front of the DDNS client and there are multiple egress equal-cost routes (multiple post-NAT IP addresses) after NAT translation, the DDNS client may send DDNS update requests through different outbound interfaces. As a result, post-NAT IP addresses may be different, causing DDNS to frequently update the mapping between domain names and IP addresses. To prevent this problem, run the ddns source-interface command to specify the source interface through which the DDNS client sends DDNS update requests.

Precautions

If the source interface specified in the ddns source-interface command is Down, the command configuration does not take effect.

Example

# Configure the source interface that sends DDNS update requests on a DDNS client.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1 
[sysname-GigabitEthernet0/0/1] ddns source-interface GigabitEthernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >