Modify

Opened 4 years ago

Last modified 3 years ago

#16923 assigned defect

Odhcpd in relay mode doesn't work at boot

Reported by: jch@… Owned by: cyrus
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: ipv6 Cc:

Description

My ISP is providing a single /64, so I'm running with the following configuration:

config dhcp wan6

option dhcpv6 relay
option ra relay
option ndp relay
option master 1

config dhcp 'lan'

[...]
option dhcpv6 'relay'
option ra 'relay'
option ndp relay

and same for wifi0 and wifi1 (I've unbridged the interfaces).

After I reboot, odhcpd is running (according to ps), but no global IPv6 has been assigned to the lan/wifi0/wifi1 interfaces, and no RAs are being sent. This can be worked around by logging in and doing

/etc/init.d/odhcpd restart

which causes the IPv6 addresses to be set.

--jch

Attachments (0)

Change History (7)

comment:1 Changed 4 years ago by swalker

  • Owner changed from developers to cyrus
  • Status changed from new to assigned

comment:2 Changed 3 years ago by sebastian@…

I have a workaround: Go to System -> Startup and add the following line to your local startup script (before the exit 0 line, of course)

sleep 60; /etc/init.d/odhcpd restart

This waits 60s after startup of the device and restarts the odhcpd daemon. It did not work for me without sleep, you may have to adjust the time for your device.

comment:3 Changed 3 years ago by anonymous

I have a similar error I guess. Except for the fact that that a global IPv6 is assigned on boot to the lan/wifi0/wifi1 interfaces but after a certain amount of time IPv6 routing on those interfaces stops working even though the wan interfaces still has a valid and global IPv6 address. Restarting the odhcp services fixes this problem as well, but I need to restart it constantly.

comment:4 Changed 3 years ago by jch@…

I'm unable to reproduce this issue with current trunk.

comment:5 Changed 3 years ago by jch@…

I'm unable to reproduce this issue with current trunk.

comment:6 Changed 3 years ago by florian.sievers@…

I can reproduce the problem on every reboot. The problem seems to be, that the br-lan is up before the odhcpd starts. At this moment, only wan6 gets a correct IPv6 from the router behind the OpenWRT Router. As soon as I restart odhcpd, br-lan gets the correct IPv6 and my clients can get them now, too.

Is it possible to trigger a odhcpd reload as soon as wan6 gets the IPv6? Maybe a trigger in init script for networking?

comment:7 Changed 3 years ago by florian.sievers@…

So to correct myself.

It's still not working with odhcpd from 15.05-rc3. But using 15.05-rc3 with odhcpd from current trunk (all self compiled) and add the following to /etc/config/dhcp

config dhcp 'lan'
        option interface 'lan'                   
        option start '100'                       
        option limit '150'                       
        option leasetime '12h' 
        # new things from here
        option ra 'relay'                        
        option dhcpv6 'relay'                    
        option ndp 'relay'

config dhcp 'wan'                                
        option interface 'wan'                   
        option ignore '1'                        
        # new things from here
        option ra 'relay'                        
        option dhcpv6 'relay'  
        option ndp 'relay'    
        option master '1'     

I was able to get it working without any futher adjustements or service restarts.
So it shuld be possible to get things running, by using odhcp commit https://github.com/sbyx/odhcpd/commit/e033ee2846e782389c9c03a72f8bce5bfb1011a9 for Chaos Calmer.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.