R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

158
example, an FTP application involves both data connection and control connection. The data connection
establishment dynamically depends on the payload information for the control connection.
Examples
# Enable NAT with ALG for FTP.
<Sysname> system-view
[Sysname] nat alg ftp
Related commands
display nat all
nat dns-map
Use nat dns-map to map the domain name of an internal server to the public IP address, public port
number, and protocol type of the server.
Use undo nat dns-map to remove a DNS mapping for NAT.
Syntax
nat dns-map domain domain-name protocol pro-type { interface interface-type interface-number | ip
global-ip } port global-port
undo nat dns-map domain domain-name
Default
No DNS mapping for NAT exists.
Views
System view
Predefined user roles
network-admin
Parameters
domain domain-name: Specifies the domain name of an internal server. A domain name is a
dot-separated, case-insensitive string that can include letters, digits, hyphens (-), underscores (_), and
dots (.) (for example, aabbcc.com). The domain name suffix can contain at most 253 characters, and
each separated string contains no more than 63 characters.
protocol pro-type: Specifies the type of the protocol used by the internal server, tcp or udp.
interface interface-type interface-number: Enables Easy IP to use the IP address of the interface specified
by its type and number as the public address of the internal server.
ip global-ip: Specifies the public IP address used by the internal server to provide services to the external
network.
port global-port: Specifies the public port number used by the internal server to provide services to the
external network. The port number format can be one of the following:
A number in the range of 1 to 65535.
A protocol name, a string of 1 to 15 characters. For example, ftp and telnet.
Usage guidelines
NAT with DNS mapping must operate with the NAT Server feature. NAT with DNS mapping maps the
domain name of the internal server to the public IP address, public port number, and protocol type of the