dhcp relay reply broadcast-always

Function

The dhcp relay reply broadcast-always command configure the DHCP relay to broadcast response packets.

The undo dhcp relay reply broadcast-always command restores the default configuration.

By default, the DHCP relay replies with broadcast or unicast packets based on the broadcast flag in request packets.

Format

dhcp relay reply broadcast-always

undo dhcp relay reply broadcast-always

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

According to standard protocols, when the DHCP relay and a DHCP client are on the same network segment, the DHCP relay checks whether client requests carry the broadcast flag. If so, the DHCP relay replies with broadcast packets. If not, the DHCP relay replies with unicast packets.

  • A DHCP client sends Discover packets, which are broadcast packets, when submitting an online request. The DHCP relay then forwards the Offer packets sent by the DHCP server. Whether the Offer packets are unicast or broadcast depends on the broadcast flag in the Discover packets.
  • The DHCP client sends Request packets, which are also broadcast packets, upon receipt of Offer packets. The DHCP relay then forwards the Ack or Nak packets sent as a reply by the DHCP server.
  • In the case of Ack packets, the DHCP relay determines whether to broadcast or unicast packets to the DHCP client based on the broadcast flag in the Request packets.
  • In the case of Nak packets, the DHCP relay replies with broadcast packets to the DHCP client.
  • If the DHCP client does not receive a response to a lease extension request until 87.5% of the lease time goes by, the DHCP server is considered useless, and the DHCP client broadcasts Request packets. The DHCP relay then forwards the Ack or Nak packets sent as a reply by the DHCP server.
  • In the case of Ack packets, the DHCP relay determines whether to broadcast or unicast packets based on the broadcast flag in the Request packets.

    -In the case of Nak packets, the DHCP relay replies with broadcast packets to the DHCP client.

    In any of the preceding situations, if the dhcp relay reply broadcast-always command has been run on the DHCP relay, the DHCP relay ignores the broadcast flag in client requests and simply broadcasts packets.

Example

# Configure the DHCP relay to broadcast packets in response to client requests.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/16
[~HUAWEI-GigabitEthernet0/1/16] dhcp relay reply broadcast-always
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >