< Home

section ( Address pool view )

Function

The section command configures the IP address segment.

The undo section command deletes the IP address segment.

Format

section [ id ] start-ipv4 [ end-ipv4 ]

undo section { id | start-ipv4 [ end-ipv4 ] }

Parameters

Parameter Description Value
id

Specifies the ID of the IP address segment.

It is an integer that ranges from 0 to 40959.

start-ipv4

Specifies the start IP address.

It is in dotted decimal notation.

end-ipv4

Specifies the end IP address.

It is in dotted decimal notation.

Views

Address pool view

Default Level

2: Configuration level

Usage Guidelines

The NAT address pool contains an address segment from a specific start address to a specific end address. You can configure address exclusion to exclude special addresses in this address segment. Therefore, the addresses in the NAT address pool can be non-contiguous.

If start-ipv4 and end-ipv4 are the same, only a single IP address is specified in a NAT address pool. You can configure only one public IP address in a NAT address pool so that intranet hosts share a fixed public IP address.

By default, the address segment is not configured.

Example

# Configure the IP address segment which ranges from 1.1.1.1 to 1.1.1.10.

<sysname> system-view
[sysname] nat address-group nataddr 1
[sysname-address-group-nataddr] section 1.1.1.1 1.1.1.10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >