[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Interface does not setup on startup



Hi folks.

I have Debian 9. I configured my wlan interface to auto connect on startup.
But, networking service does not startup:



● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-09-12 08:05:55 CEST; 33min ago
     Docs: man:interfaces(5)
  Process: 513 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 438 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0/SUCCESS)
Main PID: 513 (code=exited, status=1/FAILURE)

sep 12 08:05:55 localhost wpa_supplicant[560]: Could not read interface wlp2s0 flags: No such device
sep 12 08:05:55 localhost wpa_supplicant[560]: Could not read interface wlp2s0 flags: No such device
sep 12 08:05:55 localhost wpa_supplicant[560]: WEXT: Could not set interface 'wlp2s0' UP
sep 12 08:05:55 localhost ifup[513]: /etc/network/if-pre-up.d/wpasupplicant: 120: /etc/network/if-pre-up.d/wpasupplicant: cannot create /dev/stderr: No such device or address
sep 12 08:05:55 localhost ifup[513]: run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
sep 12 08:05:55 localhost ifup[513]: ifup: failed to bring up wlp2s0
sep 12 08:05:55 localhost systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
sep 12 08:05:55 localhost systemd[1]: Failed to start Raise network interfaces.
sep 12 08:05:55 localhost systemd[1]: networking.service: Unit entered failed state.
sep 12 08:05:55 localhost systemd[1]: networking.service: Failed with result 'exit-code'.


My net card is:
02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
        Subsystem: Lenovo QCA9377 802.11ac Wireless Network Adapter
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci
-------------------------------------

My /etc/network/interfaces looks like:
auto wlp2s0
iface wlp2s0 inet static
        address 192.168.15.138
        netmask 255.255.255.0
        gateway 192.168.15.1
        wpa-ssid MY_SSID
        wpa-psk MY_PASSWORD


If I run journalctl, I can see:
kernel: ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
This is after execution of networking.The problem is that interface is renamed after networking uses its name. How could I solve this? (no, I will not put wlan0 in my /etc/networking/interfaces, this is not the correct solution)


Thanks.

Attachment: publickey - pabloalvarezcordoba@protonmail.ch - 0x209A3FD7.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: