Necesitaba probar una software para hacer imágenes del disco sobre mi servidor de aplicaciones pero esta aplicación requería que se le asigne un IP por algun Servidor DHCP, así que necesitaba algo rápido de configurar y no tan pesado así que busque con apt-cache en mi servidor bajo Linux Debian y encontré esta joyita udhcpd un:

apt-get install udhcpd

Y después de unos 24 Kb de descarga y un segundo de espera :-) ya solo necesitaba su archivo de configuración, que es muy sencillo y lo encontré en su misma página, en un ejemplo, ahí se los dejo para que lo puedan usar también.

# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block

start 192.168.1.11 #default: 192.168.0.20
end 192.168.1.54 #default: 192.168.0.254

# The interface that udhcpd will use
interface eth1 #default: eth0

# The maximim number of leases (includes addressesd reserved
# by OFFER’s, DECLINE’s, and ARP conficts

#max_leases 254 #default: 254

# The remainer of options are DHCP options and can be specifed with the
# keyword ‘opt’ or ‘option’. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines. The only option with a default is ‘lease’.

#Examles
opt dns 208.67.222.222 208.67.220.220 #usando opendns.com
option subnet 255.255.255.0
opt router 192.168.1.1
#opt wins 192.168.10.10
#option dns 129.219.13.81 # appened to above DNS servers for a total of 3
option domain tudominioaqui.com.pe
option lease 864000 # 10 days of seconds

#######################################

Luego de crear esto en /etc/udhcpd.conf inicias el servidor con:

/etc/init.d/udhcpd start

Y listo así de simple
Espero les sea útil.

Saludos.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!