nat address-group

Function

The nat address-group command creates an address pool in a simplified NAT instance.

The undo nat address-group command deletes an address pool in a simplified NAT instance.

By default, no address pool is configured in a simplified NAT instance.

This command is supported only on the NetEngine 8000 F1A.

Format

nat address-group address-group-name group-id id start-address { mask { address-mask-length | address-mask } | end-address } [ vpn-instance vpn-instance-name ] [ no-pat ]

undo nat address-group address-group-name [ group-id id [ start-address { mask { address-mask | address-mask-length } | end-address } ] [ vpn-instance vpn-instance-name ] [ no-pat ] ]

Parameters

Parameter Description Value
address-group-name

Specifies the name of an IP address pool.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

group-id id

Specifies an address pool ID.

The value is an integer ranging from 0 to 127.

start-address

Specifies a start IP address in a public address pool.

The value is in dotted decimal notation.

mask address-mask-length

Specifies the mask length of public IP addresses.

The value is an integer ranging from 1 to 32.

mask address-mask

Specifies the mask of public IP addresses.

The value is in dotted decimal notation.

end-address

Specifies the end IP address in a public network address pool.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

no-pat

Enables no-PAT NAT translation.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

A NAT address pool is a collection of public IPv4 addresses. After receiving IPv4 packets sent by users, a NAT device translates private IPv4 addresses carried in the IPv4 packets to public IPv4 addresses and transmits the packets to a public network. The NAT address pool used in NAT is determined by a specific traffic policy.

To create an address pool in a simplified NAT instance in the non-easy IP mode, run the nat address-group command.

Prerequisites

A simplified NAT instance has been configured using the nat instance command in the system view.

Precautions

In VS mode, this command is supported only by the admin VS.

IP addresses in different NAT address pools must be different. An IP address added to a NAT address pool must be different from an interface address or a server address on the NAT device.

IP addresses in a NAT address pool cannot be assigned to interfaces.

The group-id parameter must be configured in the nat address-group command to create a NAT address pool. The group-id parameter identifies an address pool index. The value must be unique. The output of querying address pool information is displayed by indexes.

A maximum of 128 NAT address pools can be configured in a simplified NAT instance.

Example

# Configure a NAT address pool named group1 with the start IP address 192.168.131.1 and the end IP address 192.168.131.155 in a simplified NAT instance.
<HUAWEI> system-view
[~HUAWEI] nat instance nat1 id 1 simple-configuration
[*HUAWEI-nat-instance-nat1] commit
[~HUAWEI-nat-instance-nat1] quit
[~HUAWEI] nat address-group group1 group-id 1 192.168.131.1 192.168.131.155
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >