< Home

Configuring DHCP

Context

Before deploying zero touch devices using an intermediate file, you must configure a DHCP server to allow the zero touch devices to obtain IP addresses, file server addresses, and intermediate file names from the DHCP server.

If the devices to be configured and the DHCP server are located on the same network segment, you only need to configure the DHCP server. If they are located on different network segments, deploy a DHCP relay agent between the DHCP server and the devices to be configured.

In the following operations, the DHCP server is Huawei switch. If a third-party device is used, configure them according to the manual of the device.

The DHCP server must support the options required for device deployment. This section provides basic configurations of the DHCP server. For more information about DHCP configuration, see DHCP Configuration in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - IP Service.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp enable

    DHCP is enabled.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  5. Run dhcp select global

    The interface is configured to use the global IP address pool.

  6. Run quit

    Return to the system view.

  7. Run ip pool ip-pool-name

    A global DHCP address pool is created and its view is displayed.

  8. Run network ip-address [ mask { mask | mask-length } ]

    The range of IP addresses in the global address pool is specified.

    • To prevent IP address conflicts, ensure that the IP address range does not include the IP addresses specified in the configuration file to be loaded to the zero touch devices.

    • The DHCP server must have sufficient IP addresses to assign.

  9. Run gateway-list ip-address &<1-8>

    A gateway address is configured for DHCP clients.

  10. Run option code { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }

    DHCP options are configured.

    • If devices obtain file information using an intermediate file, do not configure Option 67. Instead, configure Option 146 and set the netfile field to the name of the intermediate file.

    • Configure at least one file server. For details about DHCP options specifying file server information and other related options, see Table 1 in Zero Touch Device Deployment Using Option Fields or an Intermediate File.

When EasyDeploy is used for zero touch deployment, the Commander needs to notify the new VLAN ID to clients if the Commander communicates with clients without using the default VLAN 1. Perform the following steps.

  1. Run pnp startup-vlan vlan-id

    A wired PnP VLAN ID is configured.

    By default, no wired PnP VLAN ID is configured.

  2. Run pnp startup-vlan send enable

    The function of transmitting the PnP VLAN to downstream devices is enabled.

    By default, the switch is not enabled to transmit a PnP VLAN to downstream devices.

  3. Run interface interface-type interface-number

    The Ethernet interface view is displayed.

  4. Run lldp tlv-enable legacy-tlv pnp startup-vlan

    The function of sending LLDP packets containing PnP VLAN information to downstream devices is enabled.

    By default, the switch is enabled to send LLDP packets containing PnP VLAN information to downstream devices.

  5. Run quit

    Exit from the Ethernet interface view.

  6. (Optional) When switches are connected using Eth-Trunk interfaces, perform the following operations:

    1. Run interface eth-trunk trunk-id

      The Eth-Trunk interface view is displayed.

    2. Run pnp startup-link-aggregation enable

      The function of transmitting the flag indicating whether to establish an Eth-Trunk to downstream devices is enabled.

      By default, the function of transmitting the flag indicating whether to establish an Eth-Trunk to downstream devices is disabled on the switch.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic