network ip range

Syntax

network ip range min-address max-address

undo network ip range

View

DHCP address pool view

Default level

2: System level

Parameters

min-address: Specifies the lowest IP address for dynamic allocation.

max-address: Specifies the highest IP address for dynamic allocation.

Description

Use network ip range to specify the IP address range for dynamic allocation in an address pool.

Use undo network ip range to remove the specified address range.

No IP address range is specified by default.

In a common address pool, you can use the network ip range command to further specify an IP address range on a subnet for address allocation. The specified IP address range must belong to the subnet. Otherwise, the common address pool cannot assign IP addresses.

You can specify only one IP address range for each address pool. If you use the network ip range command repeatedly, the latest configuration overwrites the previous one.

Related commands: dhcp server ip-pool, network, and display dhcp server tree.

Examples

# Specify addresses 10.1.1.1 through 10.1.1.150 on subnet 10.1.1.0/24 for dynamic address allocation in common address pool 1.

<Sysname> system-view
[Sysname] dhcp server ip-pool 1
[Sysname-dhcp-pool-1] network 10.1.1.0 24
[Sysname-dhcp-pool-1] network ip range 10.1.1.1 10.1.1.150

# Specify addresses 192.168.8.1 through 192.168.8.150 for dynamic address allocation in extended address pool 0.

<Sysname> system-view
[Sysname] dhcp server ip-pool 0 extended
[Sysname-dhcp-pool-0] network ip range 192.168.8.1 192.168.8.150