The section exclude-ip-address command excludes a specific IP address or a range of IP addresses from an IP address pool.
The undo section exclude-ip-address command restores a specific IP address or a range of IP addresses in an IP address pool.
By default, an IP address or a range of IP addresses cannot be excluded from an IP address pool.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
start-address |
Specifies the start address of an excluded address segment. |
The value is 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 in dotted decimal notation. |
section section-id |
Specifies the ID of an address segment in an address pool. |
The value can only be 0 to 15. |
Usage Scenario
If a specific IP address or a range of IP addresses needs to be removed from a NAT address pool, the address pool has to be divided into multiple pools so that each one contains a continuous range of IP addresses. Then the same configurations or operations have to be repeatedly performed on these pools. To address this problem, run the section exclude-ip-address command to remove a specific IP address or a range of IP addresses from a NAT address pool. Then the configurations or operations can be performed once on the address pool that has excluded the specified IP addresses.
Prerequisites
A NAT instance, its address pool, and address pool sections have been configured.
Precautions
<HUAWEI> system-view [~HUAWEI] nat instance cpe1 id 1 [*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 1 [*HUAWEI-nat-instance-cpe1-nat-address-group-group1] section 1 10.0.0.0 mask 24 [*HUAWEI-nat-instance-cpe1-nat-address-group-group1] section 1 exclude-ip-address 10.0.0.0 10.0.0.5