R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

183
Views
NAT address group view
Predefined user roles
network-admin
Parameters
block-size block-size: Sets the port block size. The value range for this argument is 1 to 65535. In a NAT
address group, the port block size cannot be larger than the number of ports in the port range.
extended-block-number extended-block-number: Specifies the number of extended port blocks, in the
range of 1 to 5. When a private IP address accesses the public network, but the ports in the mapped port
block are all occupied, the NAT444 gateway extends port blocks for the private IP address.
Usage guidelines
With dynamic NAT444 mapping configured, when a private IP address initiates a connection to the
public network, the NAT444 gateway assigns it a public IP address and a port block, and creates an
entry for the mapping. For subsequent connections from the private IP address, the NAT444 gateway
translates the private IP address to the mapped public IP address and the ports to ports in the mapped
port block.
Examples
# Set the port block size to 256 and the number of extended port blocks to 1 for NAT address group 2.
<Sysname> system-view
[Sysname] nat address-group 2
[Sysname-nat-address-group-2] port-block block-size 256 extended-block-number 1
Related commands
nat address-group
port-range
Use port-range to specify a port range for public IP addresses.
Use undo port-range to restore the default.
Syntax
port-range start-port-number end-port-number
undo port-range
Default
The port range for public IP addresses is 1 to 65535.
Views
NAT address group view, NAT port block group view
Predefined user roles
network-admin
Parameters
start-port-number end-port-number: Specifies the start port number and end port number for the port
range. The end port number cannot be smaller than the start port number.