R3204P16-HP Load Balancing Module Network Management Configuration Guide-6PW101

Table Of Contents
105
Figure 64 Network diagram for NAT DNS mapping
2. Configuration procedure
<LB> system-view
[LB] interface Ten-Gigabitethernet 0/0.2
# Configure the internal web server.
[LB-Ten-Gigabitethernet0/0.2] nat server protocol tcp global 202.38.1.2 inside
10.110.10.1 www
# Configure the internal FTP server.
[LB-Ten-Gigabitethernet0/0.2] nat server protocol tcp global 202.38.1.2 inside
10.110.10.2 ftp
[LB-Ten-Gigabitethernet0/0.2] quit
# Configure two DNS mapping entries: map the domain name www.server.com of the web server to
202.38.1.2, and ftp.server.com of the FTP server to 202.38.1.2.
[LB] nat dns-map domain www.server.com protocol tcp ip 202.38.1.2 port www
[LB] nat dns-map domain ftp.server.com protocol tcp ip 202.38.1.2 port ftp
[LB] quit
3. Verification
# After completing the preceding configurations, display the DNS mapping configuration information.
<LB> display nat dns-map
NAT DNS mapping information:
There are currently 2 NAT DNS mapping(s)
Domain-name: www.server.com
Global-IP : 202.38.1.2
Global-port: 80(www)
Protocol : 6(TCP)
Domain-name: ftp.server.com
Global-IP : 202.38.1.2
Global-port: 21(ftp)
Protocol : 6(TCP)
Host A and Host B can use the domain name www.server.com to access the web server, and use
ftp.server.com to access the FTP server.
FTP server
10.110.10.2/16
Host A
10.110.10.3/16
Internet
XGE0/0.1
10.110.10.10/16
XGE0/0.2
202.38.1.1/24
Web server
10.110.10.1/16
DNS server
202.38.1.4/24
Host B
202.38.1.10/24
LB