The nat address-group exclude-ip-address command excludes a specific IP address or a range of IP addresses from a NAT address pool.
The undo nat address-group exclude-ip-address command restores a specific IP address or a range of IP addresses in a NAT address pool.
No IP address is excluded from a NAT address pool by default.
This command is supported only on the NetEngine 8000 F1A.
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. |
start-address |
Specifies the start IP address. |
The value is an IPv4 address in dotted decimal notation. |
end-address |
Specifies an end IP address. The end IP address must be greater than or equal to the start IP address. |
The value is an IPv4 address in dotted decimal notation. |
Usage Scenario
Due to some unavailable IP address or IP address ranges, multiple NAT address pools must be configured so that each pool can only contain a continuous range of IP addresses. As a result, multiple policies for assigning public IP addresses have to be configured, which decreases the configuration flexibility. To address this problem, run the nat address-group exclude-ip-address command to remove a specific IP address or a network segment address from a continuous range in a NAT address pool, which increases configuration flexibility.
Prerequisites
A NAT address pool has been configured in the NAT instance view.
Precautions
<HUAWEI> system-view [~HUAWEI] nat instance cpe1 id 1 [*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 1 10.0.0.0 10.0.0.5 [*HUAWEI-nat-instance-cpe1] nat address-group group1 exclude-ip-address 10.0.0.0 10.0.0.5