Systemd/networkd: Difference between revisions

imported>Mweinelt
→‎DHCP: Don't use shorthands, that aren't documented upstream, clarify dependency chain
imported>Mweinelt
Line 80: Line 80:
=== DHCP ===
=== DHCP ===


Assuming your *wired* interface that should run DHCP is called <code>enp1s0</code>, this configuration will enable DHCP.
Acquire a DHCP lease on an interface and make <code>network-online.target</code> wait until addresses and routes from the DHCP exchange are configured.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">