I just reinstalled the native Debian Bookworm image https://github.com/armbian/community/releases/download/24.8.0-trunk.399/Armbian_community_24.8.0-trunk.399_Orangepi3b_bookworm_edge_6.9.9_minimal.img.xz taken here: https://www.armbian.com/orangepi3b/ -->Bleeding edge releases with Armbian Linux v6.9 because this -->Server and IOT releases with Armbian Linux v6.1 does not boot on the orangepi3b v2.1
/etc/network/interfaces (as on my laptop)
auto lo
iface lo inet loopback
auto end0
allow-hotplug end0
iface end0 inet static
address 192.168.100.103
gateway 192.168.100.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.100.102
gateway 192.168.100.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
The /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1
network={
ssid="MyNetwork"
psk="MyPasswd"
}
Network-manager is not intalled
I installed ifupdown
i deleted netplan.io
/sbin/reboot
The network is working on end0 but the wlan0 interface is not working.
end0 is UP
wlan0 is DOWN
ifdown end0
ip -c a --> end0 DOWN, wlan0 DOWN but there is ip 192.168.100.102 displayed !
ip link set wlan0 up (or ip link set dev wlan0 up) --> does not work
ifup wlan0 --> BROADCAST,MULTICAST,UP, LOWER_UP --> STATE UP
inet 192.168.100.102/24 brd 192.168.100.255 scope global wlan0
Ping 8.8.8.8 --> no ping
ping : unknow host
ifdown wlan0 --> ifdown: interface wlan0 not configured
BUT ip -c a --> wlan0 --> state UP and IP is displayed !
To summarize, the network works normally with the end0 interface but not with WLAN0 without netplan.io For wlan0 with ip -c a --> the ip is always displayed whether the state is on UP or DOWN and the ping doesn't work! I tried to see if it was my card that didn't work by installing network-manager and everything works normally of course without /etc/network/interfaces!
systemctl restart networking.service --> does not restart!
systemctl status networking.service --> "failed to initialize control nterface /var/run/wpa_supplicant You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again."
apt remove --purge wpasupplicant
apt install wpasupplicant
/sbin/reboot
wlan0 is DOWN but ip 192.168.100.102 is displayed
systemctl status networking.service
networking.service - Raise network interfaces
Loaded: enable
Active: failed
Process: ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)