Hi All, first post / request for help here
I am using the ArchLinux_For_BananaPi_v2_0.img
Can anyone with working systemd networkd give me some pointers? On my Arch Raspi's I would just;
$this->bbcode_second_pass_code('', '
# touch /etc/netctl/eth0
# nano /etc/netctl/eth0')
populate with my LAN settings settings then;
$this->bbcode_second_pass_code('', '
# systemctl disable dhcpcd@eth0.service
# netctl enable eth0
# shutdown -r now')
I did this on the Banana and thought I was good to go however I noticed that the dhcpd service was still running following a few reboots. Since then I have read through lots of posts and tried various things to get systemd networkd to work - which I have only partially done. So far then;
$this->bbcode_second_pass_code('', '
# systemctl stop netctl@eth0.service
# systemctl stop dhcpcd.service
# systemctl stop systemd-networkd.socket
# systemctl stop systemd-networkd.service
# systemctl stop systemd-resolved
# systemctl disable netctl@eth0.service
# systemctl disable dhcpcd.service')
I then removed my eth0 file
$this->bbcode_second_pass_code('', '
# rm /etc/netctl/eth0')
I then created /etc/systemd/network/10.eth0.network - populated with my LAN settings followed by;
$this->bbcode_second_pass_code('', '
# systemctl disable systemd-networkd.socket
# systemctl disable systemd-networkd.service
# systemctl disable systemd-resolved
# systemctl enable systemd-networkd.socket
# systemctl enable systemd-networkd.service
# systemctl enable systemd-resolved
# systemctl start systemd-networkd.socket
# systemctl start systemd-networkd.service
# systemctl start systemd-resolved')
I then rebooted but still no connection. I then tried;
$this->bbcode_second_pass_code('', ' ifconfig eth0 up') which showed link up but still no ping to outside so I ran the last 3 start commands above again and I have success! However, this does not survive a reboot.
If any seasoned Arch user can advice on systemd networking and how to make this work at boot up that would be great!
Edit: with the exception of the hex equivalent of the ip4 address (which is not shown in the non active state)
$this->bbcode_second_pass_code('', '# networkctl status -a')
shows "State: routable (configured)" - following running ifconfig up - the command also shows the full details of my setup at /etc/systemd/network/10.eth0.network - prior to that it shows "State: off (configured)"
In summary, static ip is working as long as I run $this->bbcode_second_pass_code('', '# ifconfig eth0 up') following a reboot