1-3
Description
Use the dhcp enable command to enable DHCP.
Use the undo dhcp enable command to disable DHCP.
By default, DHCP is enabled.
You need to enable DHCP before performing other DHCP-related configurations.
To improve security and avoid malicious attacks to the unused sockets, S3100 Ethernet switches
provide the following functions:
UDP ports 67 and 68 used by DHCP are enabled/disabled only when DHCP is enabled/disabled.
The implementation is as follows:
z After DHCP is enabled by executing the dhcp enable command, if the DHCP server function is not
configured, UDP port 67 and UDP port 68 ports is kept disabled; if the DHCP server function is
configured, UDP 67 and UDP 68 ports are enabled.
z After DHCP is disabled by executing the undo dhcp enable command, even if the DHCP server
function is configured, UDP port 67 and UDP port 68 ports is disabled.
Examples
# Enter system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
# Enable DHCP.
[Sysname] dhcp enable
dhcp select global
Syntax
VLAN interface view:
dhcp select global
undo dhcp select
System view:
dhcp select global { interface interface-type interface-number [ to interface-type interface-number ] |
all }
undo dhcp select { interface interface-type interface-number [ to interface-type interface-number ] |
all }
View
System view, VLAN interface view