systemd-networkd
networkctl ≥ 245- Binary
networkctl- Minimum
245- Probed with
networkctl --version- Tested
- 255257259261
Needs a version this new
json-statussince 249link-up-downsince 249dhcp-server-leasessince 246dhcp-static-leasesince 249
What changes on older versions
systemd-networkd <249networkctl --jsondoes not exist, so the columns ofnetworkctl listand theKey: valueblock ofnetworkctl statusare parsed instead; addresses carry no prefix length there, and the DHCP lease clock is not reported at allsystemd-networkd <249networkctl upanddowndo not exist; the keys are dropped from the hint bar and reconfigure is offered in their placesystemd-networkd >=245no released systemd emits JSON from
resolvectl status, so DNS servers and search domains are read from the text output ofresolvectl dnsandresolvectl domainsystemd-networkd >=245the Gateways screen (w) reads the default routes from
ip -j route(multipath expanded per next hop) and reachability fromip -j route get; the default-route switch and failover runip route replacelive, and a managed link also gets a persistent[Route]drop-in reloaded withnetworkctlsystemd-networkd >=245VLANs and bridges (V) are written as a .netdev unit under /etc/systemd/network plus a VLAN= or Bridge= line in each member's .network file, previewed as one multi-file diff, installed with
install -m 644and applied with a singlenetworkctl reload; X removes a unit tui-network wrote withrm -fsystemd-networkd >=245the DHCP screen (D) also reads systemd-networkd's own DHCP server, the one a
[DHCPServer]section in a .network unit turns on: the pool derived fromAddress=withPoolOffset=/PoolSize=, the lease time, the advertised DNS, NTP, router and domain, and the static leasessystemd-networkd >=245a change to that server is written to a drop-in of the tool's own (
<unit>.network.d/50-tui-network-dhcp.conf), rendered whole and applied withnetworkctl reload; the unit itself is never rewritten, and each advertised list is cleared before it is set because a drop-in'sDNS=adds to the unit'ssystemd-networkd >=245[DHCPServer]has no key for the domain (EmitDomains=belongs to[IPv6SendRA]), so tui-network emits it as the raw option it is,SendOption=15:string:<domain>systemd-networkd <246networkctl statusdoes not print the "Offered DHCP leases" list (systemd 246 added it), so a networkd DHCP server shows its pool and its static leases but no live onessystemd-networkd <249[DHCPServerStaticLease]does not exist (systemd 249 added it), so a static lease written on an older systemd is read back by the screen but ignored by the server
