Hi,
I am using an odroid u3 and have a static network config using systemd-networkd. However I do net get a default route set:
$this->bbcode_second_pass_code('', '[watnuss@odroid ~]$ ip r
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.30')
I get an error on systemd-networkd startup:
$this->bbcode_second_pass_code('', '
[watnuss@odroid ~]$ systemctl status systemd-networkd -l
* systemd-networkd.service - Network Service
Loaded: loaded (/etc/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-03-17 17:54:34 CET; 7s ago
Docs: man:systemd-networkd.service(8)
Process: 20899 ExecStartPost=/usr/bin/ip link set eth0 up (code=exited, status=0/SUCCESS)
Main PID: 20898 (systemd-network)
Status: "Processing requests..."
Memory: 572.0K
CGroup: /system.slice/systemd-networkd.service
`-20898 /usr/lib/systemd/systemd-networkd
Mar 17 17:54:34 odroid systemd[1]: Starting Network Service...
Mar 17 17:54:34 odroid systemd-networkd[20898]: eth0: Gained IPv6LL
Mar 17 17:54:34 odroid systemd-networkd[20898]: Enumeration completed
Mar 17 17:54:34 odroid systemd-networkd[20898]: eth0: Could not set route: Invalid argument
Mar 17 17:54:34 odroid systemd-networkd[20898]: eth0: Configured
Mar 17 17:54:34 odroid systemd[1]: Started Network Service.
')
Ofc you need my config:
$this->bbcode_second_pass_code('', '
[watnuss@odroid ~]$ cat /etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
Address=192.168.0.30/24
Gateway=192.168.0.1
DNS=8.8.8.8
IPv6AcceptRA=no
LinkLocalAddressing=no
')
Over time I tried several leads I fond by searching the web.
The last two parameters in the network segment are needed as I will get a different error if they are not present:
$this->bbcode_second_pass_code('', '
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Gained IPv6LL
Mar 17 17:55:50 odroid systemd-networkd[20913]: Enumeration completed
Mar 17 17:55:50 odroid systemd-networkd[20913]: lo: Link is not managed by us
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set route: Invalid argument
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set NDisc route or address: Invalid argument
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set NDisc route or address: Invalid argument
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set NDisc route or address: Invalid argument
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set NDisc route or address: Invalid argument
Mar 17 17:55:50 odroid systemd-networkd[20913]: eth0: Could not set NDisc route or address: Invalid argument
')
My hotfix right now is to ssh to a machine in the local network and set the default route manually via
$this->bbcode_second_pass_code('', 'sudo ip r add default via 192.168.0.1 dev eth0')
which works.
But I would rather prefer the machine to set this on its own for obvious reasons. Does any of you have an idea which could bring me further? Any help is appreciated.
Best regards,
watnuss