Configuring a DHCPv4 Server and a DHCPv4 Relay Agent

Context

Before powering on a device that needs to be deployed automatically through SZTP, you need to deploy a DHCPv4 server. This is required to ensure that the unconfigured device functioning as a DHCP client can properly obtain information, such as the allocated IP address, gateway address, and server address.

Table 1 describes the DHCP options used by a DHCP server.

If the device to be configured and the DHCPv4 server reside on different subnets, you need to configure a DHCP relay agent to forward DHCP packets.

Table 1 Description of DHCP options

Option ID

Mandatory or Not

Function

Option 1

Mandatory

Specifies the subnet mask of an IP address.

Option 3

Mandatory

Specifies the egress gateway of the DHCP client.

Option 143

Mandatory

Specifies the list of bootstrap server addresses.

The following procedure uses a router as the DHCPv4 server or relay agent. If another type of device is used, see the documentation of the corresponding product.

Procedure

  1. Perform configurations, such as configuring an address pool and assigning addresses to access users, on the device that functions as a DHCPv4 server. For details, see the device documentation. The HUAWEI NetEngine 8000 F Series is used as an example. Configure an address pool on the device functioning as the DHCPv4 server. For configuration details, see "Creating an Address Pool." For the configuration of Option 143 in the address pool, see "(Optional) Configuring DHCPv4 User-Defined Options."
  2. Configure an address pool for assigning addresses to access users. For configuration details, see "Example for Assigning IPv4 Addresses from a Local Address Pool."
  3. (Optional) Configure the DHCP relay agent, if required. For configuration details, see "Configuring DHCP Relay."
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >