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.
| Parameter | Description | Value |
|---|---|---|
| interface-type interface-number | Specifies the source interface of DDNS packets:
|
- |
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.