< Home

exclude-port (address pool view)

Function

The exclude-port command excludes the port in the NAT process.

The undo exclude-port command stops excluding the port in the NAT process.

Format

exclude-port port1 [ to port2 ]

undo exclude-port port1 [ to port2 ]

Parameters

Parameter Description Value
port1

Specifies the port or the beginning port of a port range to be excluded in the NAT process.

The value is an integer ranging from 2048 to 65535.
to port2

Specifies the ending port to be excluded in the NAT process that forms a port range with start-port.

The value is an integer ranging from 2048 to 65535.

Views

Address pool view

Default Level

2: Configuration level

Usage Guidelines

Each address pool can execute the command 100 times, each of which can exclude 256 ports.

By default, the command is not configured.

Example

# Exclude the port range from 2049 to 2303.

<sysname> system-view
[sysname] nat address-group nataddr 1
[sysname-address-group-nataddr] exclude-port 2049 to 2303
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >