section (NAT instance address pool view)

Function

The section command configures an address segment for a NAT address pool.

The undo section command deletes an address segment for a NAT address pool.

No address segment is configured for a NAT address pool.

This command is supported only on the NetEngine 8000 F1A.

Format

section section-num start-ip-address { mask { mask-length | mask-ip } | end-ip-address }

undo section section-num [ start-ip-address { mask { mask-length | mask-ip } | end-ip-address } ]

Parameters

Parameter Description Value
section-num

Specifies an address range number.

The value can only be 0 to 15.

start-ip-address

Specifies a start IP address.

The value is in dotted decimal notation.

mask mask-length

Specifies the mask length of public IP addresses.

For a no-PAT address pool, the value is an integer ranging from 20 to 32. For a PAT address pool, the value is an integer ranging from 22 to 32.

mask mask-ip

Specifies the mask of public IP addresses.

The value is in dotted decimal notation.

end-ip-address

Specifies the end IP address. The end IP address must be greater than or equal to the start IP address.

The value is in dotted decimal notation.

Views

NAT instance address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To configure an address segment for a NAT address pool, run the section command. A NAT address pool is a collection of public IPv4 addresses. After receiving IPv4 packets sent by users, a NAT device translates private IPv4 addresses carried in the IPv4 packets to public IPv4 addresses and transmits the packets to a public network. The NAT address pool used in NAT is determined by a specific traffic policy.

Either of the following modes can be used to configure a NAT address segment:

  • Configure an address range by specifying a start address and an end address or by specifying a network segment address with a mask in the nat address-group command.
  • Run the nat address-group command to enter the NAT address pool view or the NATover-load address pool view and run the section command to configure a public IP address pool.

Precautions

Address segments cannot overlap.

Running the section section-num start-ip-address end-ip-address command generates a large number of UNRs. The mask parameter is recommended to automatically summarize UNRs.

Example

# Create a NAT address segment of 10.20.1.0/24 in a NAT overload address pool named group1.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 0
[*HUAWEI-nat-instance-cpe1-nat-address-group-group1] section 0 10.20.1.0 mask 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >