Mike Leone on 1 Mar 2004 19:42:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Problems activating DHCP server


SO I finally got my mail server back up. I was using kernel 2.4.19, because
that's what came with my Libranet 2.7 (which is the OS). So I went to update
the kernel to 2.4.25 (I know 2.6 is stable; I'll get around to it one day
... :-). This is Debian testing, BTW.

Anyways, I download the kernel source; recompile; install using grub; and reboot.
And see this in the log ..

Mar  1 10:45:04 mail dhcpd: Wrote 0 deleted host decls to leases file.
Mar  1 10:45:04 mail dhcpd: Wrote 0 new dynamic host decls to leases file.
Mar  1 10:45:04 mail dhcpd: Wrote 2 leases to leases file.
Mar  1 10:45:04 mail dhcpd: socket: Protocol not available - make sure
Mar  1 10:45:04 mail dhcpd: CONFIG_PACKET (Packet socket) and CONFIG_FILTER
Mar  1 10:45:04 mail dhcpd: (Socket Filtering) are enabled in your kernel
Mar  1 10:45:04 mail dhcpd: configuration!

So I went and checked my kernel config ....

CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
CONFIG_FILTER=y

 Mind you, this same DHCP config worked under 2.4.19, with no changes to the
config. So why is the protocol unavailable for DHCP?

DHCP config (host IP is 192.168.100.20; it's also my local DNS):

option domain-name "mike-leone.com";

option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.100.0 netmask 255.255.255.0 {
  range 192.168.100.50 192.168.100.100;
  option broadcast-address 192.168.100.255;
  option routers 192.168.100.254;
  option domain-name-servers 192.168.100.20, 204.183.80.2, 207.245.82.2;
  authoritative;
  ddns-update-style interim;
}


root@mail:/etc/dhcp3# COLUMNS=120 dpkg -l | grep dhcp
ii  dhcp3-common             3.0+3.0.1rc11-5          Common files used by all the dhcp3* packages.
ii  dhcp3-server             3.0+3.0.1rc11-5          DHCP server for automatic IP address assignment
ii  webmin-dhcpd             1.121-2                  dhcpd control module for webmin

     

Attachment: signature.asc
Description: Digital signature