1. First you have to assign a static ip address to your interface card. In case of multiple cards, at least the interface where a client would be connected should get a static ip.
2. Then write a /etc/dhcpd.conf file for description of subnets, routers for subnets and various other configs.
This one's a good howto:
http://tldp.org/HOWTO/DHCP/x369.html
3. Start dhcp server with /usr/sbin/dhcpd
For debugging you can start it in forground with /usr/sbin/dhcpd -f -d (-d logs standard error messages)
Another good resource:
http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/dchp.htm
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment