1-12
# Forbid the IP addresses in the range 10.110.1.1 to 10.110.1.63 to be automatically assigned.
[Sysname] dhcp server forbidden-ip 10.110.1.1 10.110.1.63
dhcp server ip-pool
Syntax
dhcp server ip-pool pool-name
undo dhcp server ip-pool pool-name
View
System view
Parameters
pool-name: Name of a DHCP address pool, which uniquely identifies the address pool. This argument
is a string of 1 to 35 characters.
Description
Use the dhcp server ip-pool command to create a global DHCP address pool and enter DHCP
address pool view. If the address pool identified by the pool-name argument already exists, this
command leads you to DHCP address pool view.
Use the undo dhcp server ip-pool command to remove a specified DHCP address pool.
By default, no global DHCP address pool is created.
Related commands: dhcp enable.
To improve security and avoid malicious attack to the unused SOCKETs, S3100 Ethernet switches
provide the following functions:
z UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.
z UDP 67 and UDP 68 ports are disabled when DHCP is disabled.
The corresponding implementation is as follows:
z After a DHCP address pool is created by executing the dhcp server ip-pool command, the UDP
67 and UDP 68 ports used by DHCP are enabled.
z After a DHCP address pool is deleted by executing the undo dhcp server ip-pool command and
all other DHCP functions are disabled, UDP 67 and UDP 68 ports used by DHCP are disabled.
Examples
# Enter system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
# Create DHCP address pool 0.
[Sysname] dhcp server ip-pool 0