< Home

nat resource load-balance enable

Function

The nat resource load-balance enable command enables the port pre-allocation and NAT NO-PAT function in load-balancing hot standby networking.

The undo nat resource load-balance enable command disables the function.

Format

nat resource load-balance enable

undo nat resource load-balance enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

In the load-balancing hot standby networking, you must run the nat resource load-balance enable command. Otherwise, when you use the port pre-allocation or NAT NO-PAT function, the ports and IP addresses allocated to the two devices may be in conflict. After you run the nat resource load-balance enable command, the active device allocates addresses in address pools whose IDs are even, and the standby device allocates addresses in address pools whose IDs are odd to ensure that the allocated addresses and ports are not in conflict with each other. If the active device receives the first packet, and the address translated for the first packet belongs to an address pool whose ID is odd, the active device transmits information about the first packet to the standby device through the heartbeat interface. The standby device allocates the address and port to the first packet and transmits related information to the active device for it to establish a session. If the active device receives the first packet, and the address translated for the first packet belongs to an address pool whose ID is even, the active device allocates the address and port to the first packet and directly establishes a session.

If the function is not enabled, the device assigns an address and a port to a received first packet and does not forward the first packet to the peer device.

By default, the port pre-allocation and NAT NO-PAT function is disabled in load balancing hot standby networking.

Port pre-allocation and NAT NO-PAT can be used together.

Only the USG6000E (not including USG6510E/6510E-POE/6530E) support this command.

Example

# Enable the port pre-allocation function.

<sysname> system-view
[sysname] nat resource load-balance enable
Warning: After the NAT resource load balancing function is enabled, service traffic may be transmitted through the HRP heartbeat li
nk. Ensure that the heartbeat link bandwith is sufficient. Continue?[Y/N]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >