R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
105
Task Command
Remarks
Display NAT statistics on a specific
interface card. (In standalone
mode.)
display nat statistics slot slot-number [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.
Display NAT statistics on a specific
interface card of an IRF member
device. (In IRF mode.)
display nat statistics chassis chassis-number
slot slot-number [ | { begin | exclude |
include } regular-expression ]
Available in any view.
NAT configuration examples
One-to-one static NAT configuration example
Network requirements
An internal host 10.110.10.8/24 uses public address 202.38.1.100 to access the Internet.
Figure 48 Network diagram
Configuration procedure
# As shown in Figure 48, configure the IP addresses for the interfaces. (Details not shown.)
# Configure a one-to-one static NAT mapping.
<Router> system-view
[Router] nat static 10.110.10.8 202.38.1.100
# Enable static NAT on interface GigabitEthernet 3/1/2.
[Router] interface gigabitethernet 3/1/2
[Router-GigabitEthernet3/1/2] nat outbound static
[Router-GigabitEthernet3/1/2] quit
Common internal server configuration example
Network requirements
As shown in Figure 49, a company provides two Web servers, one FTP server, and one SMTP server for
external users to access. The internal network address is 10.110.0.0/16. The internal address for the FTP
server is 10.110.10.3/16, for Web server 1 is 10.110.10.1/16, for Web server 2 is 10.110.10.2/16, and
for the SMTP server is 10.110.10.4/16. The company has three public IP addresses in the range of
202.38.1.1/24 to 202.38.1.3/24. Specifically, the company has the following requirements:
• External hosts can access internal servers with public address 202.38.1.1/24.
• Port 8080 is used for Web server 2.