Error for odhcpd and IPv6 does not work

daemon.err odhcpd[1510]: Failed to send to 2401:1206:32c2:8d1:1c36:829d:2150:f11%wan@pppoe-wan (Bad file descriptor)

dhcp config

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'
	option nonwildcard '1'
	option localservice '1'
	option cachesize 10000
	option dnsforwardmax 10000
	option dhcpleasemax 10000

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '350'
	option leasetime '12h'
#	option dhcpv6 'server'
#	option ra 'server'
	option dhcpv6 'hybrid'
	option ra 'hybrid'
	option ndp 'hybrid'
	option ra_management '1'
	list dns '2606:4700:4700::1111'
#	option ra_default '1'
#	list dhcp_option '6,119.29.29.29,208.67.222.222,1.0.0.1,8.8.8.8,9.9.9.9'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'
#	option master '1'

config dhcp 'wan6'
	option interface 'wan'
#	option dhcpv6 'server'
#	option ra 'server'
	option dhcpv6 'hybrid'
	option ra 'hybrid'
	option ndp 'hybrid'
	option master '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

If you have

then a virtual interface wan_6 (note the underscore) will spawn and start DHCPv6 client odhcp6c to manage prefix assignment
You seem to have configured yourself the wan6 interface instead.
Moreover with option reqaddress 'none' I am not sure what are you trying to achieve.
Finally make sure you have allowed UDP/546-547 in WAN for DHCPv6.

On another note, this is wrong.

Try 150.

Fixed

       option ra 'server'
       option dhcpv6 'server'
       option ra_management '2'

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.