151
Step Command Remarks
3. Add a private IP address
range to the port block
group.
local-ip-address
start-address end-address
By default, no private IP address ranges
exist.
You can add multiple private IP address
ranges to one port block group, but they
cannot overlap.
4. Add a public IP address
range to the port block
group.
global-ip-pool
start-address
end-address
By default, no public IP address ranges
exist.
You can add multiple public IP address
ranges to one port block group, but they
cannot overlap.
5. Configure the port range
for the public IP
addresses.
port-range
start-port-number
end-port-number
By default, the port range is 1 to 65535.
6. Set the port block size.
block-size
block-size
By default, the port block size is 256.
7. Return to system view.
quit
N/A
8. Enter interface view.
interface
interface-type
interface-number
N/A
9. Apply the port block
group to the outbound
direction of the interface.
nat outbound
port-block-group
group-id
By default, no port block group is applied
to the interface.
You can apply multiple port block groups
to one interface.
10. Return to system view.
quit
N/A
11. (Optional.) Configure a
PAT mapping mode.
nat mapping-behavior
endpoint-independent
[
acl
{ ipv4-acl-number |
name
ipv4-acl-name } ]
The default mapping mode is
Address
and Port-Dependent Mapping
.
Configuring dynamic NAT444
Dynamic NAT444 is applicable when the private IP addresses are not fixed.
To configure dynamic NAT444:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a NAT address
group, and enter its view.
nat address-group
group-id
[
name
group-name ]
By default, no NAT address groups
exist.
3. Add a public IP address
range to the NAT
address group.
address
start-address
end-address
By default, no public IP address ranges
exist.
You can add multiple public IP address
ranges to an address group, but they
cannot overlap.
4. Configure the port range
for the public IP
addresses.
port-range
start-port-number
end-port-number
By default, the port range is 1 to 65535.
The configuration takes effect only on
PAT translation mode.
5. Configure port block
parameters.
port-block block-size
block-size
By default, no port block parameters
exist.