42
dhcp server always-broadcast
Use dhcp server always-broadcast to enable the DHCP server to broadcast all responses.
Use undo dhcp server always-broadcast to restore the default.
Syntax
dhcp server always-broadcast
undo dhcp server always-broadcast
Default
The DHCP server reads the broadcast flag in a DHCP request to decide whether to broadcast or
unicast the response.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables the DHCP server to ignore the broadcast flag in DHCP requests and
broadcast all responses.
The DHCP server always unicasts a response in the following situations, regardless of whether this
command is executed:
• The DHCP request is from a DHCP client that has an IP address (the ciaddr field is not 0).
• The DHCP request is forwarded by a DHCP relay agent from a DHCP client (the giaddr field is
not 0).
Examples
# Enable the DHCP server to broadcast all responses.
<Sysname> system-view
[Sysname] dhcp server always-broadcast
dhcp server apply ip-pool
Use dhcp server apply ip-pool to apply an address pool to an interface.
Use undo dhcp server apply ip-pool to restore the default.
Syntax
dhcp server apply ip-pool pool-name
undo dhcp server apply ip-pool
Default
No address pool is applied to an interface
Views
Interface view
Predefined user roles
network-admin