okay so it seems like this is fixed:
i have clean flashed the distro again, as i have been editing several config files of the system trying to fix the network issues and i dont even remember anymore all the files i modified, and also to discard any other problem i decided to cleanflash and apply my new knowledges in the new install
okay so, clean flash, and as i know two interfaces active will be problematic i went throught the setup only with ethernet
then i installed ifplugd to have it already installed in case internet connection doesnt work at some point throught the process, then i just set the internet using the dietpi-config for both ethernet, with static ip, and then a reboot, and then the wifi with static and both ssid, the country, the inboard wifi, and then a reboot, and then proceed to edit the config files of wpa_supplicant (it doesnt have to be modified, dietpi-config does it right, but i check it just in case), /etc/network/interface (commenting the hotplugging of eth0, and checking that both interfaces has correct static ips), checking that /etc/default/crda has REGDOMAIN=ES, and finally edit /etc/ifplugd/ifplugd.action to contain:
Code: Select all
if [ -z "$1" ] || [ -z "$2" ] ; then
echo "Wrong arguments" > /dev/stderr
if [ "$1" != "eth0" ]; then
echo "Wrong interface!" > /dev/stderr
if [ "$2" = "up" ] ; then
echo "bring down WiFi"
/sbin/ifdown wlan0 --force
/sbin/ifup eth0 --force
elif [ "$2" = "down" ] ; then
echo "bring up WiFi"
/sbin/ifdown eth0 --force
/sbin/ifup wlan0 --force
Code: Select all
ARGS="-q -f -u0 -d5 -w -I"
systemctl enable ifplugd.service
systemctl start ifplugd.service
and voilá, it is working
Now, i have set both interfaces to have the same static ip, and it "works", as in it works sometimes but i think hotswitching from one to the other makes the second one to not actually work, but no errors of wifi connection shown, it is connected, it is just that the router doesnt like two macs attatched to the same ip, at least if it happens too recently both of them... but no problem for me, i dont plan to be switching from one to another in a short time
so, conclusions: i suggest the devs to add ifplugd as an option inside the network menu, it is simple to install and configure, and seems to avoid a lot of headaches in common network configurations... Now i would have to try the dietpi-wifi-monitor to see if it makes some trouble if i activate it with my current settings (with ifplugd, i mean), but yeah, im happy with this
thanks to both devs for your time!