R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

94
DDNS configuration example 2
Network requirements
As shown in Figure 44, 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.
The IP address of the DNS server is 1.1.1.1. Router uses the DNS server to translate www.oray.cn into the
corresponding IP address.
Figure 44 Network diagram
Configuration procedure
Before configuring DDNS on Router, 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, and make sure
the devices are reachable to 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 password nevets.
[Router-ddns-policy-oray.cn] url oray://steven:nevets@phservice2.oray.net
# Set the DDNS update request interval to 12 minutes.
[Router-ddns-policy-oray.cn] interval 0 0 12
[Router-ddns-policy-oray.cn] quit
# Enable dynamic domain name resolution on Router.
[Router] dns resolve
# Specify the IP address of the DNS server as 1.1.1.1.
[Router] dns server 1.1.1.1
Router
DDNS client
www.oray.cn
DDNS server
DNS server
IP network
Eth1/1
1.1.1.1