R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

131
Task Command
Remarks
Display NAT statistics.
display nat statistics [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display NAT log information.
display nat log [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display the configurations and
statistics of output logs.
display userlog export [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Clear the records in the NAT log
buffer.
reset userlog nat logbuffer Available in user view.
Clear the statistics of NAT logs. reset userlog nat export Available in user view.
Clear the address translation table
and release the corresponding
storage space.
reset nat session Available in user 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 57 Network diagram
Configuration procedure
# As shown in Figure 57, configure 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 1/2.
[Router] interface gigabitethernet 1/2
[Router-GigabitEthernet1/2] nat outbound static
[Router-GigabitEthernet1/2] quit
Host
10.110.10.8/24
Server
Internet
GE1/1
10.110.10.1/24
GE1/2
202.38.1.1/16
Router