No IPv6 address when using static IPv6 address
After reboot the OpenWrt, LAN devices can not obtain ipv6 address.
- issue in OpenWrt repo: https://github.com/openwrt/openwrt/issues/18033
- original discuss in OpenWrt forum
- same issue in OpenWrt repo: https://github.com/openwrt/openwrt/issues/12267
- maybe related: #197
My network is a little bit different: I have 2 different ipv6 subnets: a /64 subnet and a /56 subnet, I can use both of them. And there is no DHCPv6 or RA service in upstream network.
I decide to assign a static ipv6 address to wan6 interface, pick up form the /64 subnet. And I use the /56 subnet as ipv6-pd, also config manually.
After that, the br-lan has the ipv6 address, and all things goes right, the devices in LAN network can get ipv6 address and reach the internet.
However once I reboot the router, ipv4 still works, but the ipv6 not. The br-lan still has ipv6 address, but there is only a fe80 ipv6 address in lan devices.
Restart br-lan interface or restart odhcpd service will fix this issue temporary.
Here is my config:
/etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd65:cf15:774f::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '64'
option ip6hint '1'
config interface 'wan'
option device 'eth0'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0'
option proto 'static'
option ip6gw 'fe80::1'
option ip6prefix '2a01:56:56:56::/56'
list ip6addr '2a01:64:64:64::1/64'
/etc/config/dhcp
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 cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ndp 'relay'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
log of odhcpd
# logread | grep -i 'odhcpd\|dhcpv6\|ipv6'
Wed Feb 19 08:08:34 2025 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Wed Feb 19 08:08:34 2025 daemon.notice procd: start /etc/rc.d/S35odhcpd boot
Wed Feb 19 08:08:34 2025 daemon.notice procd: Create service odhcpd
Wed Feb 19 08:08:34 2025 daemon.notice procd: Start instance odhcpd::instance1
Wed Feb 19 08:08:34 2025 daemon.notice procd: Started instance odhcpd::instance1[1869]
Wed Feb 19 08:08:34 2025 daemon.notice procd: running /etc/init.d/odhcpd running
Wed Feb 19 08:08:34 2025 daemon.notice procd: start /etc/init.d/odhcpd running
Wed Feb 19 08:08:34 2025 daemon.notice procd: stop /etc/rc.d/S35odhcpd boot - took 0.022315150s
Wed Feb 19 08:08:34 2025 daemon.notice procd: stop /etc/init.d/odhcpd running - took 0.014014450s
Wed Feb 19 08:08:35 2025 user.notice ucitrack: Setting up /etc/config/odhcpd reload dependency on /etc/config/dhcp
Wed Feb 19 08:08:39 2025 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Maybe we need add more debug info and recompile odhcpd to find out the reason.
To follow this ticket.
I added more debug information and recompiled the odhcpd package. i found the IFF_RUNNING flage in iface->flages of br-lan is not set correctly.
This issue made the result of expression i->inuse && i->ifflags & IFF_RUNNING to False
You can see the flages of br-lan is 4099 after "clean start"
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for br-lan, inuse: 1, flages: 4099 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call close function for br-lan
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for lo, inuse: 1, flages: 73 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call reload function for lo
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Entered reload function for lo
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of ifflags is 73
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of IFF_RUNNING is 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Enabling services with lo running
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call reload function for eth0
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Entered reload function for eth0
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of ifflags is 4163
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of IFF_RUNNING is 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Enabling services with eth0 running
Wed Feb 26 09:53:05 2025 user.notice ucitrack: Setting up /etc/config/odhcpd reload dependency on /etc/
config/dhcp
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Netlink newaddr myipv4address on wan6
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for br-lan, inuse: 1, flages: 4099 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call close function for br-lan
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for lo, inuse: 0, flages: 73 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call close function for lo
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call reload function for eth0
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Entered reload function for eth0
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of ifflags is 4163
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Value of IFF_RUNNING is 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Enabling services with eth0 running
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: for eth0, inuse: 0, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 09:53:05 2025 daemon.debug odhcpd[1869]: Call close function for eth0
Wed Feb 26 09:53:06 2025 daemon.debug odhcpd[1869]: Netlink newaddr myipv6address on wan
After restart odhcpd service the flages change to 4163
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: for br-lan, inuse: 1, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Call reload function for br-lan
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Entered reload function for br-lan
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of ifflags is 4163
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of IFF_RUNNING is 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Enabling services with br-lan running
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: for lo, inuse: 1, flages: 73 IFF_RUNNING: 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Call reload function for lo
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Entered reload function for lo
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of ifflags is 73
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of IFF_RUNNING is 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Enabling services with lo running
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Call reload function for eth0
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Entered reload function for eth0
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of ifflags is 4163
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of IFF_RUNNING is 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Enabling services with eth0 running
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Call reload function for eth0
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Entered reload function for eth0
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of ifflags is 4163
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Value of IFF_RUNNING is 64
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Enabling services with eth0 running
Wed Feb 26 10:23:31 2025 daemon.debug odhcpd[6526]: Netlink newneigh ::1 on loopback
Wed Feb 26 10:23:32 2025 daemon.debug odhcpd[6526]: Using a RA lifetime of 1800 seconds on lan
Wed Feb 26 10:23:32 2025 daemon.notice odhcpd[6526]: Sending a RA on lan
Wed Feb 26 10:23:32 2025 daemon.debug odhcpd[6526]: Sent 176 bytes to ff02::1%lan@br-lan
Still need to find out why it happened.
The question is: are the flags wrong or is the interface not up? I assume the latter, since restarting odhcpd immediately after bootup results in the same misbehavior. I assume that "something" (netifd?) should trigger a reload of odhcpd once br-lan is up and running...? This is also what happens if you restart br-lan or any of the other interfaces.
This is full log after kernel loaded. Not sure which reason caused this issue.
netifd said bridge 'br-lan' link is up and Interface 'lan' has link connectivity but the flag of odhcp was still 4099, which means the odhcpd thinks interface was not running at that time.
Here is my modified odhcpd-ipv6only version (x86_64 architecture) with more debug log. if someone interested, you can download ipk file form here
Thu Feb 27 02:29:33 2025 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Thu Feb 27 02:29:33 2025 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: started, version 2.90 cachesize 1000
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: DNS service limited to local subnets
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-I
D loop-detect inotify dumpfile
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Feb 27 02:29:33 2025 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 names
Thu Feb 27 02:29:33 2025 authpriv.info dropbear[1633]: Not backgrounding
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: bonding
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: 8021ad
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: 8021q
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: macvlan
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: veth
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: bridge
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: Network device
Thu Feb 27 02:29:33 2025 user.notice : Added device handler type: tunnel
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.683121] 8021q: adding VLAN 0 to HW filter on device eth1
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' is enabled
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' is setting up now
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' is now up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: bridge 'br-lan' link is up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'loopback' is enabled
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'loopback' is setting up now
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'loopback' is now up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan' is enabled
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan6' is enabled
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan6' is setting up now
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.774363] br-lan: port 1(eth1) entered blocking state
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.775041] br-lan: port 1(eth1) entered disabled state
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.775584] virtio_net virtio2 eth1: entered allmulticast mode
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.776196] virtio_net virtio2 eth1: entered promiscuous mode
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.776984] br-lan: port 1(eth1) entered blocking state
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.777500] br-lan: port 1(eth1) entered forwarding state
Thu Feb 27 02:29:33 2025 kern.info kernel: [ 11.780215] 8021q: adding VLAN 0 to HW filter on device eth0
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan6' is now up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: bridge 'br-lan' link is down
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' has link connectivity loss
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Network device 'eth1' link is up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: bridge 'br-lan' link is up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Network device 'lo' link is up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'loopback' has link connectivity
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Network device 'eth0' link is up
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan' has link connectivity
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan' is setting up now
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan6' has link connectivity
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for br-lan, inuse: 1, flages: 4099 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call close function for br-lan
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for lo, inuse: 1, flages: 73 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call reload function for lo
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Entered reload function for lo
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of ifflags is 73
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of IFF_RUNNING is 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Enabling services with lo running
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call reload function for eth0
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Entered reload function for eth0
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of ifflags is 4163
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of IFF_RUNNING is 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Enabling services with eth0 running
Thu Feb 27 02:29:33 2025 daemon.notice netifd: wan (2023): udhcpc: started, v1.36.1
Thu Feb 27 02:29:33 2025 daemon.notice netifd: wan (2023): udhcpc: broadcasting discover
hu Feb 27 02:29:33 2025 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/luci-splash reload dependency on /etc/config/firewall
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/qos reload dependency on /etc/config/firewall
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/miniupnpd reload dependency on /etc/config/firewall
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/odhcpd reload dependency on /etc/config/dhcp
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/network
Thu Feb 27 02:29:33 2025 daemon.notice netifd: wan (2023): udhcpc: broadcasting select for 1.2.3.4, server 2.3.4.5
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/wireless
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/luci_statistics reload dependency on /etc/config/system
Thu Feb 27 02:29:33 2025 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/system
Thu Feb 27 02:29:33 2025 daemon.notice netifd: wan (2023): udhcpc: lease of 1.2.3.4 obtained from 2.3.4.5, lease time 43200
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Netlink newaddr 1.2.3.4 on wan6
Thu Feb 27 02:29:33 2025 daemon.notice netifd: Interface 'wan' is now up
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using nameserver 8.8.4.4#53
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Feb 27 02:29:33 2025 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for br-lan, inuse: 1, flages: 4099 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call close function for br-lan
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for lo, inuse: 0, flages: 73 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call close function for lo
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for eth0, inuse: 1, flages: 4163 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call reload function for eth0
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Entered reload function for eth0
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of ifflags is 4163
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Value of IFF_RUNNING is 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Enabling services with eth0 running
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: for eth0, inuse: 0, flages: 4163 IFF_RUNNING: 64
Thu Feb 27 02:29:33 2025 daemon.debug odhcpd[1862]: Call close function for eth0
Thu Feb 27 02:29:33 2025 user.notice firewall: Reloading firewall due to ifup of wan6 (eth0)
Thu Feb 27 02:29:33 2025 daemon.info procd: - init complete -
Thu Feb 27 02:29:33 2025 user.notice firewall: Reloading firewall due to ifup of wan (eth0)
Thu Feb 27 02:29:35 2025 daemon.debug odhcpd[1862]: Netlink newaddr 6:7:8:9::1 on wan
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: started, version 2.90 cachesize 1000
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: DNS service limited to local subnets
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-I
D loop-detect inotify dumpfile
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using nameserver 8.8.4.4#53
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Thu Feb 27 02:29:38 2025 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Thu Feb 27 02:30:49 2025 authpriv.info dropbear[2951]: Child connection from 192.168.1.203:43408
Thu Feb 27 02:30:53 2025 authpriv.notice dropbear[2951]: Password auth succeeded for 'root' from 192.168.1.203:43408
Thu Feb 27 02:54:33 2025 authpriv.info dropbear[2951]: Exit (root) from <192.168.1.203:43408>: Disconnect received
Thu Feb 27 03:02:51 2025 authpriv.info dropbear[6833]: Child connection from 192.168.1.203:46402
Thu Feb 27 03:02:55 2025 authpriv.notice dropbear[6833]: Password auth succeeded for 'root' from 192.168.1.203:46402
Here is my modified odhcpd-ipv6only version (x86_64 architecture) with more debug log. if someone interested, you can download ipk file form here
Thank you. But instead of a modified binary version, you should provide details about your changes, maybe create a PR and add the fix to the official code base.
Here is my modified odhcpd-ipv6only version (x86_64 architecture) with more debug log. if someone interested, you can download ipk file form here
Thank you. But instead of a modified binary version, you should provide details about your changes, maybe create a PR and add the fix to the official code base.
I just added more debug log about the variables, nothing to PR. If someone interested in this issue, this version just produce more logs.
I think I might be having a similar issue, but in SLAAC-only mode. Router Solicitations are received, but odhcpd only responds with a Router Advertisement if I restart the process.
I will try to look into it.
Edit: actually a reload works too, restart isn't needed, in my case
After fixing the odhcpd process with a reload, I'm able to unfix it by calling /etc/init.d/network restart. It's still the same PID, but it stops sending Router Advertisements.
After fixing the odhcpd process with a reload, I'm able to unfix it by calling
/etc/init.d/network restart. It's still the same PID, but it stops sending Router Advertisements.
Hi, pktpls!
Could you use the modified version with more debug info and upload the logs of key step reproduce of this issue.
Yes but can you provide the patch for your changes
Yes but can you provide the patch for your changes
The x86 version download Link is in this reply
The source code is in another PC. I can not provide source code for now. if you need the code, I will look for it later.
@vnwnv Any news on this and on the patch?
Hi @Ansuel - can you shed some light on this? You added ba30afcfec0a26ce4bcd96ea4d687c498b0ba4df which preconditions a reload on an interface being up. The reasoning in the commit message seems sound.
Perhaps we need a more specific condition.