dhcpd v6 4.3.1 and events
alexpro at homelan.lg.ua
Wed Jan 14 16:57:39 UTC 2015
14.01.2015 16:49, Nikolay P пишет:
> First make sure your "/etc/dhcp/release" script runs properly. Did you try to execute it manually? Does it run properly and produce expected results?
> Next, for debug purposes I would try to put a one line script in place of "/etc/dhcp/release", let's say "echo 'dhcp-release' > /tmp/dhcp_release_test", then wait until it is triggered by DHCPD and inspect content of /tmp/dhcp_release_test. If everything is OK, then you should see the 'dhcp-release' line.
Of course, I did everything exactly as you said. When "on commit" event
occurs, I got message in debug log:
Jan 14 19:44:04 home-gw dhcpd: execute_statement argv = /etc/dhcp/commit
And script executes properly, here is contents:
/bin/echo "Commit" >> /tmp/dhcp-commit
When release, I got message of dhcpd:
Jan 14 03:06:32 home-gw dhcpd: Release message from
fe80::d6ca:6dff:feee:14c3 port 546, transactio
n ID 0xD778CE00
Jan 14 03:06:32 home-gw dhcpd: Client 00:03:00:01:d4:ca:6d:ee:14:c3
releases prefix 2a02:xxxx:8:10
Jan 14 03:06:32 home-gw dhcpd: Sending Reply to
fe80::d6ca:6dff:feee:14c3 port 546
But in debug log no messages after that. Simply nothing happens.
And you have get it right, and the event is triggered? For now I don't
understand what I missing...
with best regards, Alexey Prokopchuk (AP8686-RIPE).
More information about the dhcp-users