R21xx-HP FlexFabric 11900 Layer 3 IP Services Configuration Guide
109
DDNS configuration example with PeanutHull server
Network requirements
As shown in Figure 49, Switch is a Web server with domain name whatever.gicp.cn.
Switch acquires the IP address through DHCP. Through the PeanutHull server, Switch 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. Switch uses the DNS server to translate www.oray.cn into the corresponding IP address.
Figure 49 Network diagram
Configuration procedure
Before configuring DDNS on Switch, register with username steven and password nevets at
http://www.oray.cn/, add Switch's host name-to-IP address mapping to the DNS server, and make sure
the devices can reach each other.
# Create a DDNS policy named oray.cn and enter its view.
<Switch> system-view
[Switch] ddns policy oray.cn
# Specify for DDNS update requests the URL address with the login ID steven and plaintext password
nevets.
[Switch-ddns-policy-oray.cn] url oray://phservice2.oray.net
[Switch-ddns-policy-oray.cn] username steven
[Switch-ddns-policy-oray.cn] password simple nevets
# Set the DDNS update request interval to 12 minutes.
[Switch-ddns-policy-oray.cn] interval 0 0 12
[Switch-ddns-policy-oray.cn] quit
# Specify the IP address of the DNS server as 1.1.1.1.
[Switch] dns server 1.1.1.1
# Apply the DDNS policy oray.cn to VLAN-interface 2 to enable DDNS update and to dynamically
update the mapping between whatever.gicp.cn and the primary IP address of VLAN-interface 2.










