simple dhcp server howto?

Hi -I'm newbie here. I'd like to innstall DLS on my 128mb Kingostone memory flash to work like a home router. Can You help me how to do this like:

home_1 -dhcp----\
home_2 -dhcp-----> Dsl router --dhcp--> my provider
home_3 -dhcp----/

Thank's for any suggestions!