R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

161
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
network mask
Syntax
network mask mask
undo network mask
View
DHCP extended address pool view
Default level
2: System level
Parameters
mask: Network mask, in dotted decimal notation.
Description
Use network mask to specify the IP address mask for dynamic allocation in an extended address pool.
Use undo network mask to remove the specified IP address mask.
No IP address mask is specified by default.
NOTE:
Only the extended address pools support this command.
If you specify an IP address range for an extended address pool without an IP address mask, the
extended address pool is not valid, and therefore the system cannot assign IP addresses from the
extended address pool.
Related commands: dhcp server ip-pool, display dhcp server tree, and network ip range.
Examples
# Specify 255.255.255.0 as the IP address mask for dynamic allocation in extended address pool 0.
<Sysname> system-view
[Sysname] dhcp server ip-pool 0 extended
[Sysname-dhcp-pool-0] network mask 255.255.255.0