exclude (Static mapping algorithm configuration view)

Function

The exclude command excludes a port segment where the ports are not allocated for a static source tracing algorithm.

The undo exclude command deletes the configuration.

By default, no port segment is excluded for a static source tracing algorithm.

This command is supported only on the NetEngine 8000 F1A.

Format

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

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

Parameters

Parameter Description Value
start-port

Specifies the start port number.

The value is an integer ranging from 256 to 65535 and must be a multiple of 256.

end-port

Specifies the end port number.

The value is an integer ranging from 256 to 65535. The end port number must be greater than the start port number, and the end port number plus 1 must be a multiple of 256.

static-mapping static-mapping-id

Specifies a static source tracing algorithm ID.

The value is an integer ranging from 1 to 2000.

Views

Static mapping algorithm configuration view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To exclude a port segment where the ports are not allocated for a static source tracing algorithm, run the exclude command.

Precautions

After a static source tracing algorithm is bound to a NAT instance, the exclude configuration cannot be modified or deleted.

Example

# Exclude the port segment with ports ranging from 1024 to 2047 from the static source tracing algorithm with the ID of 10.
<HUAWEI> system-view
[~HUAWEI] nat static-mapping
[*HUAWEI-nat-static-mapping] inside-pool 1
[*HUAWEI-nat-static-mapping-inside-pool-1] section 1 10.0.0.1 10.0.0.255
[*HUAWEI-nat-static-mapping-inside-pool-1] quit
[*HUAWEI-nat-static-mapping] global-pool 1
[*HUAWEI-nat-static-mapping-global-pool-1] section 1 172.20.0.1 172.20.0.100
[*HUAWEI-nat-static-mapping-global-pool-1] quit
[*HUAWEI-nat-static-mapping] static-mapping 10 inside-pool 1 global-pool 1 port-range 256 65535 port-size 256
[*HUAWEI-nat-static-mapping] exclude 1024 2047 static-mapping 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >