I have a flint 3 connected to the ISP router which has the DHCP enabled and provides a lease for 30 minutes.
This leads to a frequent IP update from the router which in turns leads to the Flint 3 shutting down the WAN interface for each update.
As a result of that, the internet for the LAN goes down for like 20 seconds.
I tried turning static IPv4 on (instead of DHCP), but the interface is still taken down by dhcp6.
I've changed /sbin/hotplug-call to this:
#!/bin/sh
Copyright (C) 2006-2016 OpenWrt.org
export HOTPLUG_TYPE="$1"
. /lib/functions.sh
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
LOGNAME=root
USER=root
export PATH LOGNAME USER
export DEVICENAME="${DEVPATH##*/}"
if [ ! -z "$1" -a -d /etc/hotplug.d/$1 ]; then
for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
echo "BEFORE $$ ip r ps" >> /tmp/scr
[ -f $script ] && . $script
echo "$script -- $$ -- ip r -- ps" >> /tmp/scr
); done
fi
The output is here:
https://minisatip.org/tmp/scr.txt
Few notes:
- disabling ipv6 and static ipv4 leads to no issues
- static ipv4 & dhcp ipv6 -> internet stops for max 20s
- dhcp ipv4 & ipv6 -> internet stops for max 20s
During the outage, eth0 routes are completely gone, LAN works
An example of suspicious processes:
2692 root 1592 S {hotplug-call} /bin/sh /sbin/hotplug-call carrier
2693 root 1744 S {dhcpv6.script} /bin/sh /lib/netifd/dhcpv6.script et
2694 root 1616 R {dhcpv6.sh} /bin/sh ./dhcpv6.sh dhcpv6 teardown wan6
2695 root 1592 S {hotplug-call} /bin/sh /sbin/hotplug-call iface
2696 root 1760 S sh -c . /lib/functions/modem.sh && get_modem_bus
2699 root 1600 S {hotplug-call} /bin/sh /sbin/hotplug-call carrier
2701 root 1460 R ps
2703 root 1592 R {hotplug-call} /bin/sh /sbin/hotplug-call iface
2705 root 1744 S {dhcpv6.script} /bin/sh /lib/netifd/dhcpv6.script et
When the interface comes back up (with default route):
3635 root 1592 S {hotplug-call} /bin/sh /sbin/hotplug-call carrier
3636 root 1760 S sh -c . /lib/functions/modem.sh && get_modem_bus
3637 root 1752 R {dhcpv6.sh} /bin/sh ./dhcpv6.sh dhcpv6 setup wan6 {"
3639 root 1600 S {hotplug-call} /bin/sh /sbin/hotplug-call carrier
3643 root 1460 R ps
3645 root 1596 S {hotplug-call} /bin/sh /sbin/hotplug-call iface