nat address-group unnumbered interface

Function

The nat address-group unnumbered interface command configures the multiplexing relationship between address pools and interface addresses in a simplified NAT instance.

The undo nat address-group unnumbered interface command deletes the multiplexing relationship between address pools and interface addresses in a simplified NAT instance.

By default, no multiplexing relationship between address pools and interface addresses 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 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 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.

unnumbered

Borrow the address of an interface.

-

interface interface-name

Specifies the name of an interface.

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

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

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

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

On an enterprise network, an interface address must be different from that in a NAT address pool. As public IP addresses are limited, enterprise users have to expand the number of public IP addresses. The NAT address pool can be configured to reuse interface addresses to help the enterprise users to lower the cost in applying for public IP addresses.

In easy IP mode, to configure the multiplexing relationship between address pools and interface addresses in a simplified NAT instance, run the nat address-group unnumbered interface command.

Precautions

  • IP addresses in a NAT address pool cannot be assigned to interfaces.
  • IP addresses in an address pool cannot overlap those in another address pool or those of existing interfaces.
  • Each instance is bound to a single interface, and each interface can be borrowed by a single instance.

Example

# Configure an address pool named group1 in a simplified NAT instance to reuse the IP address of GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] nat instance nat1 id 1
[*HUAWEI-nat-instance-nat1] commit
[~HUAWEI-nat-instance-nat1] quit
[~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 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 >