Hi,
I guess you are looking to configure the SW (with L3 image) as DHCP server.. try the below..
************************************************************************
!
ip dhcp excluded-address --> these IPs never assigned.
ip dhcp excluded-address
!
ip dhcp pool VLAN10
network <192.168.10.0> < 255.255.255.0>
default-router 192.168.10.1
dns/wins options
lease infinite (or you can set the time period as well)
!
ip dhcp pool VLAN12
network <192.168.12.0> < 255.255.255.0>
default-router 192.168.12.1
dns/wins options
lease infinite
!
then folllows the regular Vlan and interface Vlan configs.
***************************************************************************
hth
MS