nat address-group (NAT instance view)

Function

The nat address-group command configures a NAT address pool or displays the NAT address pool view.

The undo nat address-group command deletes a NAT address pool view.

No NAT address pool is configured by default.

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 ]

nat address-group address-group-name [ group-id id [ vpn-instance vpn-instance-name ] [ no-pat ] ]

undo nat address-group address-group-name [ group-id id [ 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 the start IP address in a public network 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

NAT instance 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.

Configuration Impact

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

Precautions

Only one NAT address pool can be configured for a NAT instance.

Example

# Configure a NAT address pool named group1 in the NAT instance named cpe1. In the group1 view, configure the network segment address and mask of 192.168.2.0/24 for the address pool.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 0
[*HUAWEI-nat-instance-cpe1-nat-address-group-group1] section 1 192.168.2.0 mask 24
# 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 the NAT instance named cpe1.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] 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 >