Configuring DHCP
Context
Before deploying zero touch devices, you must configure the DHCP functions to allow the DHCP clients to obtain an IP address and Commander's address from the DHCP server. The clients then can communicate with the Commander to obtain information about the files they need to download.
If the clients and 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 server and clients.
You can configure the Commander, another Huawei switch, or a third-party device on the network as the DHCP server or DHCP relay agent. In the following operations, another Huawei switch is configured as the DHCP server. 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 S600-E V200R019C10 Configuration Guide - IP Service.
Procedure
- Run system-view
The system view is displayed.
- Run dhcp enable
DHCP is enabled.
- Run interface interface-type interface-number
The interface view is displayed.
- Run dhcp select global
The interface is configured to use the global IP address pool.
- Run quit
Return to the system view.
- Run ip pool ip-pool-name
A global DHCP address pool is created and its view is displayed.
- 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 configured IP address range does not include the IP addresses specified in the configuration files.
The DHCP server must have sufficient IP addresses to assign.
- Run gateway-list ip-address &<1-8>
A gateway address is configured for DHCP clients.
- Run option 148 ascii ascii-string
DHCP options are configured.
The option 148 parameter must be specified first, indicating the Commander's IP address. After this parameter is specified, the clients implement EasyDeploy using the Commander.
The ascii-string parameter is set in the format of "ipaddr=ip-address;port=udp-port;". For example, if the IP address and port number of the Commander are 10.10.10.1 and 60000, respectively, the ascii-string parameter is expressed as ipaddr=10.10.10.1;port=60000; or ipaddr=10.10.10.1; (the default port number 60000 is omitted).
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.
Run pnp startup-vlan vlan-id
A wired PnP VLAN ID is configured.
By default, no wired PnP VLAN ID is configured.
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.
Run interface interface-type interface-number
The Ethernet interface view is displayed.
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.
- Run quit
Exit from the Ethernet interface view.
(Optional) When switches are connected using Eth-Trunk interfaces, perform the following operations:
- Run interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
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.
- Run interface eth-trunk trunk-id