no log generation

Roberto Greiner mrgreiner at gmail.com
Tue Oct 31 17:39:03 UTC 2006


Hi,

I've installed isc-dhcpd recently, but did something wrong. The server is working properly, assigning IP addresses to clients, but for some reason no log is being generated at all. The only reason I'm sure the server is working properly is because tshark did show that the packets are getting in and out as expected. The only messages that the deamon
generated at all in /var/log/messages where the following:

dhcpd: Abandoning IP address 172.16.aaa.bbb: pinged before offer

To see if it was some problem with firewall blocking the messages to the syslog deamon, I tried disabling the firewall completely with 'pfctl -d', but still didn't get any log.

I also tried running the server on foreground, and the logs were generated on the screen without any problem. The command I used was:
/usr/local/sbin/dhcpd -f -d -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd -group dhcpd bge1

I just added '-f -d' to what I saw as being started by the start-up script.

Can somebody help me find out what's wrong?

Here is the data about my install:
OS: FreeBSD 6.1
ISC-DHCPd version 3.0.3
The machine has two ethernet boards. One with a valid IP address (bge0),
the other inside the NATed network (bge1), where it is assigning the
addresses.

config file:
option domain-name "domain.xxxx.xxxx";
default-lease-time 7200;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
subnet 172.16.0.0 netmask 255.255.0.0 {
        range 172.16.11.2 172.16.255.254;
        option routers 172.16.0.1;
        option domain-name-servers 172.16.0.1;
        default-lease-time 7200;
        max-lease-time 86400;
}

In the syslog file I added the following line:
local7.*                                        /var/log/dhcpd.log

Syslog was properly restarted after that, but no data at all is beeing
entered on the above file. I tried creating the file with touch, but
without results.

In rc.conf I addesd the following lines:
dhcpd_enable="YES"
dhcpd_flags=""
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="bge1"
dhcpd_withumask="022"

The bge1 interface, has the following configuration in rc.conf:
ifconfig_bge1="inet 172.16.0.254  netmask 255.255.0.0"
ifconfig_bge1_alias0="inet 172.17.0.254  netmask 255.255.0.0"


Thank you for your help,

Marcos Roberto Greiner



-- 
 ------------------------------------------------------------------- 
|                     Marcos Roberto Greiner                        | 
|                                                                   | 
|         Os otimistas acham que estamos no melhor dos mundos       | 
|         Os pessimistas tem medo de que isto seja verdade          | 
|                                                     Murphy        | 
 ------------------------------------------------------------------- 
|                         rgreiner at usp.br                           | 
 -------------------------------------------------------------------



More information about the dhcp-users mailing list