< Home

exclude-port (nat static view)

Function

The exclude-port command excludes the public port range used in static mapping.

The undo exclude-port command cancels the exclusion of the port range.

Format

exclude-port start-port end-port static-mapping mapping-id

undo exclude-port static-mapping mapping-id

Parameters

Parameter Description Value
start-port

Specifies the start port.

The value is an integer ranging from 256 to 65535.

end-port

Specifies the end port.

The value is an integer ranging from 256 to 65535.

mapping-id

Specifies the index of the static mapping.

The value is an integer ranging from 1 to 2000.

Views

nat static view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Exclude port range 2048 to 2303 used in the static mapping indexed as 1.

<sysname> system-view
[sysname] nat static-mapping
[sysname-nat-static] exclude-port 2048 2303 static-mapping 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >