R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)
107
DDNS configuration example with PeanutHull server
Network requirements
As shown in Figure 48, Router is a Web server with domain name whatever.gicp.cn. Router acquires the
IP address through DHCP. Through the PeanutHull server, Router informs the DNS server of the latest
mapping between its domain name and IP address. Router uses the DNS server to translate
www.oray.cn into its IP address.
Figure 48 Network diagram
Configuration procedure
Before configuring DDNS on Router, do the following:
• Register with username steven and password nevets at http://www.oray.cn/.
• Add Router's host name-to-IP address mapping to the DNS server.
• Make sure the devices can reach each other.
# Create a DDNS policy named oray.cn and enter its view.
<Router> system-view
[Router] ddns policy oray.cn
# Specify for DDNS update requests the URL address with the login ID steven and plaintext password
nevets.
[Router-ddns-policy-oray.cn] url oray://phservice2.oray.net
[Router-ddns-policy-oray.cn] username steven
[Router-ddns-policy-oray.cn] password simple nevets
# Set the DDNS update request interval to 12 minutes.
[Router-ddns-policy-oray.cn] interval 0 0 12
[Router-ddns-policy-oray.cn] quit
# Specify the IP address of the DNS server as 1.1.1.1.
[Router] dns server 1.1.1.1
# Apply the DDNS policy to GigabitEthernet 2/1/1 to enable DDNS update and dynamically update
the mapping between whatever.gicp.cn and the primary IP address of GigabitEthernet 2/1/1.
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] ddns apply policy oray.cn fqdn whatever.gicp.cn
Router
DDNS client
www.oray.cn
DDNS server
DNS server
IP network
GE2/1/1
1.1.1.1