Dear Maintainer,
when macchanger is installed, I can not configure my network devices from /etc/network/interfaces.
I have two devices, eth0 and wlan0. The second one (wlan0) can be completely disabled by unloading the
kernel module (which is ath9k) and shutting down the interface (ifconfig wlan0 down).
When I want to configure eth0 with the command "/etc/init.d/networking restart" or doing "ifconfig eth0 down && ifconfig eth0 up",
the interface is not configured.
To clear things, see the output:
/etc/init.d/networking restart
[....] Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.
failed!
And this is the log:
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 12:09:40 CEST; 2s ago
Docs: man:interfaces(5)
Process: 29630 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, status=0/SUCCESS)
Process: 30332 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 30329 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)"
Main PID: 30332 (code=exited, status=1/FAILURE)
Okt 05 12:09:40 protheus7 wpa_supplicant[30371]: Successfully initialized wpa_supplicant
Okt 05 12:09:40 protheus7 wpa_supplicant[30371]: Could not read interface wlan0 flags: No such device
Okt 05 12:09:40 protheus7 wpa_supplicant[30371]: WEXT: Could not set interface 'wlan0' UP
Okt 05 12:09:40 protheus7 ifup[30332]: /etc/network/if-pre-up.d/wpasupplicant: 120: /etc/network/if-pre-up.d/wpasupplicant: cannot creat
Okt 05 12:09:40 protheus7 ifup[30332]: run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Okt 05 12:09:40 protheus7 ifup[30332]: ifup: failed to bring up wlan0
Okt 05 12:09:40 protheus7 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
I am not sure, what exactly is the reason, hope you can enlighten me.
Best regards
Hans