The following article will guide you to configure DHCP Server on Huawei Switch device according to the example below.
– On the model that has been configured with VLAN, trunk, IP for the corresponding VLAN interfaces, you can review the configuration in this article.
– On Switch 1, we will configure the DHCP pool for VLAN 10 and 20.
(SW01)dhcp enabled
(SW01)ip pool VLAN10
(SW01-ip-pool-vlan10)network 10.0.10.0 mask 24
(SW01-ip-pool-vlan10)gateway-list 10.0.10.1
(SW01-ip-pool-vlan10)dns-list 8.8.8.8
(SW01-ip-pool-vlan10)lease day 0 hour 8 minute 0
(SW01)dhcp enabled
(SW01)ip pool VLAN20
(SW01-ip-pool-vlan20)network 10.0.20.0 mask 24
(SW01-ip-pool-vlan20)gateway-list 10.0.20.1
(SW01-ip-pool-vlan20)dns-list 8.8.8.8
(SW01-ip-pool-vlan20)lease day 0 hour 8 minute 0
– Configure Interface VLAN 10 and 20 using the newly created pools.
(SW01)interface Vlanif 10
(SW01-Vlanif10)dhcp select global
(SW01)interface Vlanif 20
(SW01-Vlanif20)dhcp select global
– To avoid Clients receiving DHCP from other Servers in the system, we will enable the DHCP Snooping feature on Switch 2.
(SW02)dhcp enable
(SW02)dhcp snooping enable
– Enable DHCP Snooping on Eth-Trunk 1 connected to Switch 1 (DHCP Server) and configure it as a trust interface.
(SW02)interface Eth-Trunk 1
(SW02-Eth-Trunk1)dhcp snooping enable
(SW02-Eth-Trunk1)dhcp snooping trusted
– Turn on DHCP Snooping on interfaces connecting to the Client.
(SW02)interface GigabitEthernet 0/0/3
(SW02-GigabitEthernet0/0/3)dhcp snooping enable
(SW02-GigabitEthernet0/0/3)quit
(SW02)interface GigabitEthernet 0/0/4
(SW02-GigabitEthernet0/0/4)dhcp snooping enable
(SW02-GigabitEthernet0/0/4)quit
– Similar to your configuration for Switch 3.
– On the Host, check that the IP has been received.
!!! Thank you for following the article!!!
Xem tiếp...