← All tools
systemd-networkd .network Builder
Write a validated .network file for a static IPv4 address or DHCP, with the subnet details to check before installing it.
Generated .network file
10-enp1s0.network
Subnet details
| Address | Network | Usable range | Hosts | Gateway |
|---|
Installing the file
- Save it as
/etc/systemd/network/10-enp1s0.network, owned by root with mode 0644. - Make sure only one manager configures the link: NetworkManager and systemd-networkd must not both handle the same interface. Set the device unmanaged in NetworkManager, or disable it.
- Enable and reload:
sudo systemctl enable --now systemd-networkd, thensudo networkctl reload. - Check the result:
networkctl status enp1s0andip address show enp1s0.
systemd-networkd reads these files in lexical order and the first .network file that matches an interface is used, so the numeric prefix decides precedence; a second matching file with a lower number wins instead. This page generates text only: it cannot read your host, change permissions, or reload systemd-networkd, and the file uses IPv4 addresses for DNS servers.