R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

159
Static NAT444 configuration example
Network requirements
As shown in Figure 65, configure static NAT444 to allow users at private IP addresses 10.110.10.1 to
10.110.10.10 to use the public IP address 202.38.1.100 to access the Internet. Set the port range to 10001
to 15000, and set the port block size to 500.
Figure 65 Network diagram
Configuration procedure
# Specify IP addresses to interfaces. (Details not shown.)
# Create NAT port block group 1.
<Router> system-view
[Router] nat port-block-group 1
# Add the private IP addresses from 10.110.10.1 to 10.110.10.10 to the port block group.
[Router-port-block-group-1] local-ip-address 10.110.10.1 10.110.10.10
# Add the public IP address member 202.38.1.100 to the port block group.
[Router-port-block-group-1] global-ip-pool 202.38.1.100 202.38.1.100
# Set the port block size to 500.
[Router-port-block-group-1] block-size 500
# Configure the port range as 10001 to 15000.
[Router-port-block-group-1] port-range 10001 15000
[Router-port-block-group-1] quit
# Apply the port block group 1 to the outbound direction of GigabitEthernet 2/1/2.
[Router] interface gigabitethernet 2/1/2
[Router-GigabitEthernet2/1/2] nat outbound port-block-group 1
[Router-GigabitEthernet2/1/2] quit
Verifying the configuration
# Verify that users at the private IP addresses can access the Internet. (Details not shown.)
# Display all NAT configuration and statistics.
[Router]display nat all
NAT logging:
Log enable : Disabled
Flow-begin : Disabled
Flow-end : Disabled
Flow-active : Disabled
Port-block-assign : Disabled
Port-block-withdraw : Disabled