enable dhcp ports 6,7 vlan test1
config vlan test1 dhcp-address-range 192.168.1.100 - 192.168.1.150
Only two command needed to configure dhcp on vlan test1. DHCP discovery should come on vlan test1 then only dhcp would work. It will not provide the same functionality as that of Windows server where windows server check dhcp options before assigning ip from respective pool