Method to configure DHCP on different network segments on S series switches

11

S series switches excluding the S1700 support DHCP configuration on the same network segment or different network segments. A DHCP relay agent is required to forward DHCP messages when the DHCP server and DHCP client are located on different network segments or in different VLANs.

Other related questions:
The method of S-series switches configure multiple network segments on an interface
S series switches (except S1700) can be configured by configuring the slave address to configure the address of multiple network segments on a Layer 3 interface.

Method to configure DHCP on S series switches
For S series switches excluding the S1700, the switch can both function as the DHCP server to assign IP addresses to clients and function as a DHCP client to dynamically obtain an IP address from the DHCP server. When the DHCP client and DHCP server are located on different network segments, the switch can also function as the DHCP relay agent to assist DHCP server in allocating IP addresses to clients. In addition, the switch can be configured with DHCP snooping to defend against DHCP attacks.

Method to configure DHCP server on S series switches
For S series switches excluding the S1700, the switch can function as the DHCP server to assign IP addresses to DHCP clients. Two configuration modes are available: - Interface address pool: This mode is simple. It only applies to scenario where the DHCP server and DHCP client are located on the same network segment, that is, there is no need to deploy the DHCP relay agent. - Global address pool: It applies to the scenario where the DHCP server and DHCP client are located on different segments, that is, the DHCP relay agent needs to be deployed. It also applies to the scenario where the DHCP server and DHCP client are located on the same network segment and IP addresses to be assigned to clients on multiple interfaces.

Method to configure the DHCP relay on S series switches
For S series switches excluding the S1700, when the DHCP client and the DHCP server are located on different network segments, configure a DHCP relay agent to assist the DHCP server in allocating IP addresses to DHCP clients. There is no difference of the DHCP relay configuration between all versions and models of Huawei S series switches.

Method to configure static DHCP binding on S series switches
Static DHCP binding allows the switch to allocate fixed IP addresses to user terminals with fixed MAC addresses. Assume that an S series switch excluding the S1700 needs to allocate the fixed IP address of 10.10.10.10 to the client with the MAC address of dcd2-fc96-e4c0. The configuration method is as follows: - Based on the global address pool: [HUAWEI] ip pool 1 //Address segments have been configured in the address pool. [HUAWEI-ip-pool-1] static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0 - Based on the interface address pool: [HUAWEI] interface vlanif 10 //An IP address has been assigned to the interface. [HUAWEI-Vlanif10] dhcp server static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0 Note: The configured IP address cannot be the IP address that has been assigned. If the system displays a message indicating that the IP address has been assigned, run the reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } command in the user view to manually reclaim IP addresses in the address pool.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top