dijous, 26 de novembre del 2009

No subnet declaration for eth0 (0.0.0.0)

En un moment posterior parlarem sobre la configuració d'un dhcp pero ara mateix m'he trobat amb aquest error i anem a documentar-ho.

Quan arranca el servidor, i tenint com a servei activat no entra en funcionament el dhcp, revisant el logs de sistema tail -f /var/log/syslog obtinc el següent missatge d'error


No subnet declaration for eth0 (0.0.0.0).
Nov 26 12:34:22 router-10 dhcpd: ** Ignoring requests on eth0.  If this is not what
Nov 26 12:34:22 router-10 dhcpd:    you want, please write a subnet declaration
Nov 26 12:34:22 router-10 dhcpd:    in your dhcpd.conf file for the network segment
Nov 26 12:34:22 router-10 dhcpd:    to which interface eth0 is attached. **

He revisat també el fitxer /etc/default/dhcp3-server i el seu contingut és el desitjat

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"

http://lists.debian.org/debian-user/2001/12/msg02068.html