151
Configure NAT so that:
•
The public IP address 202.38.1.2 is used by external users to access the Web and FTP servers.
•
External users can use the public address or domain name of internal servers to access them.
•
Internal users can access the internal servers by using their domain names.
Figure 62
Network diagram
Configuration considerations
•
Configure NAT Server by mapping the internal IP addresses and port numbers of the internal
servers to a public address and port numbers so that external users can access the interval servers.
•
Configure NAT with DNS mapping and ALG so that the external IP address of the internal server in
the payload of the DNS response packet can be translated to the internal IP address.
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable NAT with ALG and DNS.
<Router> system-view
[Router] nat alg dns
# Enter interface view of GigabitEthernet 1/2.
[Router] interface gigabitethernet 1/2
# Configure NAT Server to allow external hosts to access the internal Web server by using the address
202.38.1.2.
[Router-GigabitEthernet1/2] nat server protocol tcp global 202.38.1.2 inside 10.110.10.1
www
# Configure NAT Server to allow external hosts to access the internal FTP server by using the address
202.38.1.2.
[Router-GigabitEthernet1/2] nat server protocol tcp global 202.38.1.2 inside 10.110.10.2
ftp
# Enable outbound NAT with Easy IP on interface GigabitEthernet 1/2.
[Router-GigabitEthernet1/2] nat outbound
[Router-GigabitEthernet1/2] quit
# Configure two DNS mapping entries by mapping 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.
[Router] nat dns-map domain www.server.com protocol tcp ip 202.38.1.2 port www
[Router] nat dns-map domain ftp.server.com protocol tcp ip 202.38.1.2 port ftp
[Router] quit
FTP server
10.110.10.2/16
Host A
10.110.10.3/16
Internet
GE1/1
10.110.10.10/16
GE1/2
202.38.1.1/24
Router
Web server
10.110.10.1/16
DNS server
202.38.1.4/24
Host B
202.38.1.10/24
Содержание MSR 2600 Series
Страница 6: ...We appreciate your comments...
Страница 33: ...18 AC vlan1 quit...
Страница 113: ...98 Figure 41 Creating a record d On the page that appears select IPv6 Host AAAA as the resource record type...
Страница 118: ...103...
Страница 168: ...153 H323 Enabled ICMP ERROR Enabled...
Страница 170: ...155 Task Command Display FIB entries display fib vpn instance vpn instance name ip address mask mask length...