Configuring DHCP
Context
Before deploying devices to be deployed using an intermediate file, you must configure a DHCP server to allow the 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 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 IP address range does not include the IP addresses specified in the configuration file to be loaded to the devices to be deployed.
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.