The switch ports will need to be configured as access ports as members of the appropriate VLANs. The VLANs will need to be setup with the appropriate subnet, subnet mask, and gateway. The DHCP server will then need to be configured with the appropriate subnet scopes and the correct DHCP parameters to be given to the clients. The switch will need to be configured to pass on DHCP broadcasts. This is done using the dhcp helper configuration. The DHCP broadcasts will then go from the clients, through the switch being marked as coming from a particular VLAN (subnet) and the DHCP server will return the appropriate client address for the VLAN. Checkout the DHCP handbook site for additional information. Please also review documentation from the switch manufacturer. They should have explicit examples of how to configure VLANs and DHCP.