I have until now only run the rock64 with dhcp with the default systemd-networkd definition file:
[code]
$ cat /etc/systemd/network/en.network
[Match]
Name=en*
[Network]
DHCP=yes
DNSSEC=no
[/code]
I spent a considerable time trying to switch to a static ip only but despite trying multiple different [Network] stanza sections to define a static ip address only instead of dhcp assigned pool address, the system failed to boot, and it was necessary to remove the microsd card, and mount it in a laptop and then copy back the original en.network file. The system appeared to boot but was not accessible via ssh and is headless, so there was no way to then access the system.
Finally the only solution I could find was to simply add an address stanza with a single line definition, to have the rock64 use both the dhcp pool assigned ip address as well as my static address as per:
[code]
$ cat /etc/systemd/network/en.network
[Match]
Name=en*
[Network]
DHCP=yes
DNSSEC=no
[Address]
Address=172.20.0.8/24
[/code]
This boots fine and the interface has both ip addresses.
However has anyone found a way to give the rock64 a static ip only, and still boot without a problem?