You are not logged in.

#1 2019-05-11 07:23:55

ironyman
Member
Registered: 2019-05-03
Posts: 1

networkd not obtaining IP on startup even setting dhcp=ipv4

I have a softether client service(a vpn implementation) running on startup, and when it connects it brings up an ethernet interface. There's no problem obtaining IP addresses if the interface is up and I restart systemd-networkd. However it doesn't work when the machine gets rebooted. I suspect it has something to do with the startup order of the two, in which the interface has to come up first. How do I troubleshoot this? Any log available?

Offline

#2 2019-05-11 11:00:30

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: networkd not obtaining IP on startup even setting dhcp=ipv4

ironyman wrote:

Any log available?

https://wiki.archlinux.org/index.php/Systemd/Journal

Perhaps try

systemctl edit softether-vpn

Then add

[Unit]
After=
After=network-online.target

The supplied unit file seems to use network.target but network-online.target may be more appropriate for use with systemd-networkd, see systemd.special(7) for an explanation of the differences.

You could also try adding systemd-networkd.service to the After= list.

Offline

Board footer

Powered by FluxBB