nat address-group unnumbered interface (NAT instance view)

Function

The nat address-group unnumbered interface command creates a reusing relationship between a NAT address pool and an interface address.

The undo nat address-group unnumbered interface command deletes the reusing relationship between a NAT address pool and an interface address.

By default, no reusing relationship exists between a NAT address pool and an interface address.

This command is supported only on the NetEngine 8000 F1A.

Format

nat address-group address-group-name group-id id unnumbered interface { interface-name | interface-type interface-number }

undo nat address-group address-group-name group-id id unnumbered interface { interface-name | interface-type interface-number }

Parameters

Parameter Description Value
address-group-name

Specifies the name of an 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 the ID of the address pool.

The value is an integer ranging from 0 to 127.

unnumbered

Borrow the address of an interface.

-

interface-name

Specifies the name of an interface.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

interface-type

Specifies the type of the interface.

-

interface-number

Specifies the number of the interface.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

NAT instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

In enterprise network scenarios, IP addresses in a NAT address pool do not overlap with interface addresses, leading to insufficiency of public IP addresses. To expand public IP address for enterprise users, run the nat address-group unnumbered interface command to configure a reusing relationship between a NAT address pool and an interface address.

Precautions

  • A single interface address can be used in each NAT instance view. Borrowing different interface addresses in a NAT instance is not allowed.
  • The primary IP address, not the secondary IP address, of an interface can be borrowed.
  • A device supports the binding of 16 interfaces to 16 NAT instances in EasyIP scenarios.

Example

# Configure the NAT address pool named group1 in the NAT instance cpe1 view to reuse the IP address of GigabitEthernet 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] ip address 1.1.1.1 255.255.255.0
[*HUAWEI-GigabitEthernet0/1/1] quit
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 1 unnumbered interface GigabitEthernet 0/1/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >