Servus,
ich muss wegen Wechsel der Hardware meinen Router neu aufsetzen - gleichzeitig wollte ich auf nunmehr eingebaute Funktionen setzen - ergo kein netctl mehr sondern systemd-networkd
Grundsätzlich funktioniert das - aber das WLAN-Device für hostapd beim Systemstart kommt zu spät - oder hostapd zu früh (hostapd[303]: Could not read interface wlp0s20u3 flags: No such device) ...
ug 17 21:42:03 hydra systemd[1]: Reached target Network.
Aug 17 21:42:03 hydra systemd[1]: Started OpenSSH Daemon.
Aug 17 21:42:03 hydra systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Aug 17 21:42:03 hydra systemd[1]: Starting Network Name Resolution...
Aug 17 21:42:03 hydra systemd-resolved[305]: Using system hostname 'hydra'.
Aug 17 21:42:03 hydra hostapd[303]: Configuration file: /etc/hostapd/hostapd.conf
Aug 17 21:42:03 hydra hostapd[303]: Could not read interface wlp0s20u3 flags: No such device
Aug 17 21:42:03 hydra kernel: bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Aug 17 21:42:03 hydra kernel: device enp3s0 entered promiscuous mode
Aug 17 21:42:03 hydra kernel: intel_rapl: Found RAPL domain package
Aug 17 21:42:03 hydra kernel: intel_rapl: Found RAPL domain core
Aug 17 21:42:03 hydra kernel: intel_rapl: Found RAPL domain uncore
Aug 17 21:42:03 hydra kernel: intel_rapl: Found RAPL domain dram
Aug 17 21:42:03 hydra systemd-networkd[286]: enp3s0: Configured
Aug 17 21:42:03 hydra kernel: r8169 0000:03:00.0 enp3s0: link down
Aug 17 21:42:03 hydra kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Aug 17 21:42:03 hydra hostapd[303]: nl80211: Driver does not support authentication/association or connect commands
Aug 17 21:42:03 hydra hostapd[303]: nl80211: deinit ifname=wlp0s20u3 disabled_11b_rates=0
Aug 17 21:42:03 hydra systemd[1]: Started Network Name Resolution.
Aug 17 21:42:03 hydra hostapd[303]: Could not read interface wlp0s20u3 flags: No such device
Aug 17 21:42:03 hydra hostapd[303]: nl80211 driver initialization failed.
Aug 17 21:42:03 hydra hostapd[303]: wlp0s20u3: interface state UNINITIALIZED->DISABLED
Aug 17 21:42:03 hydra hostapd[303]: wlp0s20u3: AP-DISABLED
Aug 17 21:42:03 hydra hostapd[303]: hostapd_free_hapd_data: Interface wlp0s20u3 wasn't started
Aug 17 21:42:03 hydra systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 21:42:03 hydra systemd[1]: hostapd.service: Unit entered failed state.
Aug 17 21:42:03 hydra systemd[1]: hostapd.service: Failed with result 'exit-code'.
Aug 17 21:42:03 hydra sshd[302]: Server listening on 0.0.0.0 port 22.
Aug 17 21:42:03 hydra sshd[302]: Server listening on :: port 22.
Aug 17 21:42:03 hydra systemd[1]: Created slice system-systemd\x2drfkill.slice.
Aug 17 21:42:03 hydra systemd-networkd[286]: br0: Configured
Aug 17 21:42:03 hydra kernel: IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
Aug 17 21:42:03 hydra kernel: ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
Aug 17 21:42:03 hydra kernel: usb 2-3: new high-speed USB device number 4 using xhci_hcd
Aug 17 21:42:03 hydra systemd[1]: Starting Load/Save RF Kill Switch Status of rfkill1...
Aug 17 21:42:03 hydra systemd[1]: Started Load/Save RF Kill Switch Status of rfkill1.
Aug 17 21:42:03 hydra kernel: iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
Aug 17 21:42:03 hydra systemd-networkd[286]: wlan0: Renamed to wlp2s0
Aug 17 21:42:03 hydra systemd[1]: Found device Wireless 3160 (Dual Band Wireless-AC 3160).
Aug 17 21:42:03 hydra systemd[1]: Started WPA supplicant daemon (interface-specific version).
Aug 17 21:42:03 hydra systemd[1]: Reached target Multi-User System.
Aug 17 21:42:03 hydra systemd[1]: Reached target Graphical Interface.
Aug 17 21:42:03 hydra systemd[1]: Startup finished in 1.218s (kernel) + 617ms (userspace) = 1.836s.
Aug 17 21:42:03 hydra kernel: iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
Aug 17 21:42:03 hydra kernel: iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
Aug 17 21:42:03 hydra kernel: iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
Aug 17 21:42:03 hydra kernel: iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
Aug 17 21:42:04 hydra kernel: usbcore: registered new interface driver rtsx_usb
Aug 17 21:42:04 hydra kernel: Switched to clocksource tsc
Aug 17 21:42:04 hydra kernel: ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
Aug 17 21:42:04 hydra kernel: ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 5370 detected
Aug 17 21:42:04 hydra kernel: ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Aug 17 21:42:04 hydra kernel: usbcore: registered new interface driver rt2800usb
Aug 17 21:42:04 hydra systemd[1]: Starting Load/Save RF Kill Switch Status of rfkill2...
Aug 17 21:42:04 hydra kernel: rt2800usb 2-3:1.0 wlp0s20u3: renamed from wlan0
Aug 17 21:42:04 hydra systemd[1]: Started Load/Save RF Kill Switch Status of rfkill2.
Aug 17 21:42:04 hydra systemd-networkd[286]: wlan0: Renamed to wlp0s20u3
Aug 17 21:42:04 hydra systemd-networkd[286]: wlp0s20u3: wlp0s20u3 : could not join netdev: Operation not supported
Aug 17 21:42:04 hydra systemd-networkd[286]: wlp0s20u3: Failed
Wenn ich hostapd nachträglich von Hand starte, klappt alles - es ist also nur ein Problem der Reihenfolge beim Systemstart.
Wie kann ich hier die Startreihenfolge beeinflussen - grundsätzlich steht in der hostapd.service ja schon "After=network.target" drin