0 Members and 1 Guest are viewing this topic.
# systemctl stop networking.service# mv /etc/network/interfaces /etc/network/interfaces.ORIG# systemctl disable networking.service
[Unit]Description=Wireless network connectivity (%i)Wants=network.targetBefore=network.targetBindsTo=sys-subsystem-net-devices-%i.deviceAfter=sys-subsystem-net-devices-%i.device[Service]Type=oneshotRemainAfterExit=yesExecStart=/sbin/ip link set dev %i upExecStart=/sbin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant-%i.confExecStart=/sbin/dhclient %iExecStop=/sbin/ip link set dev %i down[Install]WantedBy=multi-user.target
[Match]# Name=<INTERFACE>Name=wlan0[Network]DHCP=yes
## für DHCPDHCP=ipv4DHCP=ipv6DHCP=both## für statisches ein BeispielDNS=192.168.1.254Address=192.168.1.87/24Gateway=192.168.1.254
# mv wpa_supplicant.conf wpa_supplicant-<INTERFACE>.conf
# rm /etc/resolv.conf# ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf## wpa_suplicant.service wird in diesem Falle nicht gebraucht,## da wpa_supplicant durch## network-wireless@<INTERFACE>.service gestartet wird# systemctl mask wpa_supplicant.service# systemctl enable systemd-resolved# systemctl enable systemd-networkd# systemctl enable network-wireless@<INTERFACE>.service# systemctl start systemd-networkd# systemctl start systemd-resolved# systemctl start network-wireless@<INTERFACE>.service
systemctl start network-wireless@<INTERFACE>.service
wpa_passphrase <ESSID> <passphrase> >> wpa_supplicant-<INTERFACE>.conf
Mal eine Verständnisfrage zum Thema. Kann der networkd das nicht ohne wpa_supplicant regeln?
# cat /etc/wpa_supplicant/wpa_supplicant-wlan0.confctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ ssid="<SSID>" scan_ssid=1 psk="<pssst Geheim>" proto=RSN key_mgmt=WPA-PSK pairwise=TKIP group=TKIP WEP104 WEP40 auth_alg=OPEN priority=15 id_str="home"}network={ ssid="<noch eine ssid>" psk="<G123#eh456Heim>" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN}network={ ssid="HotelNET" key_mgmt=NONE auth_alg=OPEN}