Haringstad Posted February 7, 2018 Posted February 7, 2018 I know, I know.... I am trying to do the following: apt-get autoremove --purge network-manager rdnssd ifdown eth0 ifdown wlan0 remove all settings in /etc/network/interfaces, except for the lo interface. Configure systemd-networkd rm /etc/resolv.conf ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf vim /etc/systemd/network/wired.network [Match] Name=eth0 [Network] DHCP=both [DHCP] RouteMetric=10 vim /etc/systemd/network/wireless.network [Match] Name=wlan0 [Network] DHCP=both [DHCP] RouteMetric=20 Enable the services systemctl enable systemd-resolved.service systemctl enable systemd-networkd.service systemctl start systemd-resolved.service systemctl start systemd-networkd.service Create a systemd service for your wlan interface: vim /etc/systemd/system/wpa_supplicant@wlan0.service [Unit] Description=WPA supplicant for %i [Service] ExecStart=/sbin/wpa_supplicant -i%i -c/etc/wpa_supplicant/wpa_supplicant.conf [Install] WantedBy=multi-user.target vim /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev network={ ssid="NW_TEST" key_mgmt=NONE } network={ ssid="DaHome" psk="a very secret key indeed" } Enable the wpa_supplicant systemctl stop wpa_supplicant systemctl disable wpa_supplicant systemctl enable wpa_supplicant@wlan0 systemctl start wpa_supplicant@wlan0 This works fine on my orange-pi-win-plus. But on my other orange-pi systems, all running armbian, the eth0 interface doesn't come up after these actions. Only when I reinstate the /etc/network/interfaces file as is, it comes back to life. Very sadly, because to me, the systems feel more snappy when I use this config. SSH, resolving, all goes a lot faster. Does anyone have a clue on how to bring up the network interface(s), to use this setup? Regards!
lrrr Posted March 27, 2018 Posted March 27, 2018 Use of the interfaces file is the current debian way for network configuration. You are no longer using network-manager and have thus ditched it. Have you checked systemd status and logs? What do you find out? Why are you trying to keep the interfaces file? It is not used by networkd. Might try getting just eth0 working with networkd and go from there. [Match] Name=eth0 [Network] DHCP=yes
Recommended Posts