[Dibbler] Script not executed initially and other questions

Daniel Kenzelmann klub.com.pl at k8n.de
Wed Nov 25 17:45:06 CET 2015


Hi,

I've got a problem with running a script after it pulled a prefix.

I am running it on a DSL connection with PPPoE.
The DSL provider reconnects after 24 hours and hands out a new prefix 
every time.

I want to use radvd to use stateless autoconfiguration in my internal 
network using the new prefix obtained via DHCPv6 (using dibbler).

My plan was to restart radvd via a script that is executed once we get a 
prefix.

However it seems the script (the script option in client.conf) is not 
executed initially, so this does not allow me to restart radvd once the 
prefix changed (after the reconnect). As far as I can see it is executed 
after 2 hours (RENEW?)

As you can see below, I am getting a prefix and radvd.conf is created 
accordingly. However the script is not executed. (so I can not restart 
radvd from there)
"Script execution skipped for REPLY response to SOLICIT. No action 
needed for this message type."

My questions are:

1. Is there a way to run a script once the prefix has been obtained?
2. If the script would run, in the script, can I directly access the 
prefix(es) somehow? (e.g. via environment variable or parameters)
3. When using multiple downlink interfaces prefixes are automatically 
split in /64 subnets which is fine. However when only using a single 
interface in "downlink-prefix-ifaces", the full /56 prefix is used. (in 
radvd.conf). Is there a way to tell dibbler to still split it to /64 
size so I can use SLAAC on my clients?


Thanks for any help with this,
Daniel


-------------------------
| Dibbler - a portable DHCPv6, version 1.0.1 (CLIENT, Linux port)
| Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek 
Senderski<msend(at)o2.pl>
| Licence : GNU GPL v2 only. Developed at Gdansk University of 
Technology.
| Homepage: http://klub.com.pl/dhcpv6/
2015.11.25 16:56:08 Client Notice    My pid (31718) is stored in 
/var/lib/dibbler/client.pid
2015.11.25 16:56:08 Client Notice    Detected iface sixxs/39, MAC=.
2015.11.25 16:56:08 Client Notice    Detected iface ppp0/38, MAC=.
2015.11.25 16:56:08 Client Notice    Detected iface br0/6, 
MAC=64:66:b3:1e:d1:07.
2015.11.25 16:56:08 Client Notice    Detected iface wlan0/5, 
MAC=64:66:b3:1e:d1:07.
2015.11.25 16:56:08 Client Notice    Detected iface eth1/4, 
MAC=bc:5f:f4:5a:45:da.
2015.11.25 16:56:08 Client Notice    Detected iface eth0/3, 
MAC=74:ea:3a:80:f6:58.
2015.11.25 16:56:08 Client Notice    Detected iface sit0/2, 
MAC=00:00:00:00.
2015.11.25 16:56:08 Client Notice    Detected iface lo/1, 
MAC=00:00:00:00:00:00.
2015.11.25 16:56:08 Client Notice    Parsing /etc/dibbler/client.conf 
config file...
2015.11.25 16:56:08 Client Debug     PD: Following interfaces marked as 
downlink: br0 eth0
2015.11.25 16:56:08 Client Debug     Prefix delegation option (no 
parameters) found.
2015.11.25 16:56:08 Client Debug     Parsing /etc/dibbler/client.conf 
done, result=0(success)
2015.11.25 16:56:08 Client Debug     1 interface(s) specified in 
/etc/dibbler/client.conf
2015.11.25 16:56:08 Client Info      Interface ppp0/38 configuration has 
been loaded.
2015.11.25 16:56:08 Client Debug     DUID's value = 
00:01:00:01:1d:cd:e2:b3:64:66:b3:1e:d1:07 was loaded from client-duid 
file.
2015.11.25 16:56:08 Client Info      My DUID is 
00:01:00:01:1d:cd:e2:b3:64:66:b3:1e:d1:07.
2015.11.25 16:56:08 Client Info      Loading old address database 
(client-AddrMgr.xml), using built-in routines.
2015.11.25 16:56:08 Client Info      DB timestamp:1448466945, 
now()=1448466968, db is 23 second(s) old.
2015.11.25 16:56:08 Client Debug     Auth: Replay detection value loaded 
0
2015.11.25 16:56:08 Client Info      All client's 
00:01:00:01:1d:cd:e2:b3:64:66:b3:1e:d1:07 leases are not valid.
2015.11.25 16:56:08 Client Debug     Bind reuse enabled (multiple 
instances allowed).
2015.11.25 16:56:08 Client Notice    Creating control (::) socket on the 
lo/1 interface.
2015.11.25 16:56:08 Client Notice    Creating socket 
(addr=fe80::613c:65d3:a59f:9fa) on ppp0/38 interface.
2015.11.25 16:56:08 Client Debug     Initialising link-state detection 
for interfaces: ppp0/38
2015.11.25 16:56:08 Client Notice    CONFIRM support compiled in.
2015.11.25 16:56:08 Client Info      Creating SOLICIT message with 1 
IA(s), no TA and 1 PD(s) (with rapid-commit) on ppp0/38 interface.
2015.11.25 16:56:08 Client Debug     Sending SOLICIT(opts:1 3 25 14 8 ) 
on ppp0/38 to multicast.
2015.11.25 16:56:08 Client Debug     Sleeping for 1 second(s).
2015.11.25 16:56:08 Client Debug     Received 148 bytes on interface 
ppp0/38 (socket=5, addr=fe80::90:1a00:1a0:7a5f).
2015.11.25 16:56:08 Client Info      Received REPLY on 
ppp0/38,trans-id=0xeef1e0, 7 opts: 2 1 14 25 20 23 13
2015.11.25 16:56:08 Client Notice    IA_NA option requested, but not 
present in this message. Ignored.
2015.11.25 16:56:08 Client Warning   Setting option 14 failed.
2015.11.25 16:56:08 Client Debug     PD: Adding 2003:51:cd4d:4800:: 
prefix to PD (iaid=1) to addrDB.
2015.11.25 16:56:08 Client Notice    PD: Adding prefix 
2003:51:cd4d:4800::/56 to all interfaces (prefix will be split to /64 
prefixes if necessary).
2015.11.25 16:56:08 Client Info      PD: Using 2 suitable 
interface(s):br0 eth0
2015.11.25 16:56:08 Client Notice    PD: Adding prefix 
2003:51:cd4d:4806::/64 on the br0/6 interface.
2015.11.25 16:56:08 Client Notice    PD: Adding prefix 
2003:51:cd4d:4803::/64 on the eth0/3 interface.
2015.11.25 16:56:08 Client Debug     RENEW(IA_PD) will be sent (T1) 
after 7200, REBIND (T2) after 11520 seconds.
2015.11.25 16:56:08 Client Warning   Setting option 20 failed.
2015.11.25 16:56:08 Client Notice    Setting up DNS server 
2003:180:2:8000::53 on interface ppp0/38.
2015.11.25 16:56:08 Client Notice    Setting up DNS server 
2003:180:2:8100::53 on interface ppp0/38.
2015.11.25 16:56:08 Client Notice    Status SUCCESS :
2015.11.25 16:56:08 Client Notice    There are still some IA(s) to 
configure.
2015.11.25 16:56:08 Client Error     Unable to send REQUEST. There are 
no backup servers left.
2015.11.25 16:56:08 Client Debug     Script execution skipped for REPLY 
response to SOLICIT. No action needed for this message type.
2015.11.25 16:56:08 Client Info      Creating SOLICIT message with 1 
IA(s), no TA and 0 PD(s) (with rapid-commit) on ppp0/38 interface.
2015.11.25 16:56:08 Client Debug     Sending SOLICIT(opts:1 3 14 8 ) on 
ppp0/38 to multicast.
2015.11.25 16:56:08 Client Debug     Sleeping for 1 second(s).
2015.11.25 16:56:09 Client Info      Processing msg 
(SOLICIT,transID=0xa12d28,opts: 1 3 14 8)
2015.11.25 16:56:09 Client Debug     Sending SOLICIT(opts:1 3 14 8 ) on 
ppp0/38 to multicast.
2015.11.25 16:56:09 Client Debug     Sleeping for 2 second(s).
2015.11.25 16:56:11 Client Info      Processing msg 
(SOLICIT,transID=0xa12d28,opts: 1 3 14 8)
2015.11.25 16:56:11 Client Debug     Sending SOLICIT(opts:1 3 14 8 ) on 
ppp0/38 to multicast.
2015.11.25 16:56:11 Client Debug     Sleeping for 4 second(s).
2015.11.25 16:56:15 Client Info      Processing msg 
(SOLICIT,transID=0xa12d28,opts: 1 3 14 8)
2015.11.25 16:56:15 Client Debug     Sending SOLICIT(opts:1 3 14 8 ) on 
ppp0/38 to multicast.
2015.11.25 16:56:15 Client Debug     Sleeping for 8 second(s).
2015.11.25 16:56:23 Client Info      Processing msg 
(SOLICIT,transID=0xa12d28,opts: 1 3 14 8)
2015.11.25 16:56:23 Client Debug     Sending SOLICIT(opts:1 3 14 8 ) on 
ppp0/38 to multicast.
2015.11.25 16:56:23 Client Debug     Sleeping for 16 second(s).


More information about the Dibbler mailing list