network

Syntax

network network-address [ mask-length | mask mask ]

undo network

View

DHCP address pool view

Default level

2: System level

Parameters

network-address: Specifies the subnet for dynamic allocation. If no mask length and mask is specified, the natural mask will be used.

mask-length: Specifies the mask length, in the range of 1 to 30.

mask mask: Specifies the IP address network mask, in dotted decimal format.

Description

Use network to specify the subnet for dynamic allocation in a DHCP address pool.

Use undo network to remove the specified subnet.

No subnet is specified by default.

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

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

Examples

# Specify 192.168.8.0/24 as the subnet for dynamic allocation in DHCP address pool 0.

<Sysname> system-view
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] network 192.168.8.0 mask 255.255.255.0