SYSTEMD-....SERVICE(8)
๐ SYSTEMD-....SERVICE(8) ๐
okay bestie, welcome to the manual page for systemd-network-generator.service and systemd-network-generator โ it lives in the systemd-network-generator.service section of the systemd manuals, and it is literally the girl who reads your kernel command line and turns it into network config. main character energy fr fr. ๐ธ
โจ NAME โจ
systemd-network-generator.service, systemd-network-generator โ generate network configuration from the kernel command line ๐
๐ฆ SYNOPSIS ๐ฆ
systemd-network-generator.service
/usr/lib/systemd/systemd-network-generator
๐ DESCRIPTION ๐
So here's the tea ๐: systemd-network-generator.service is a system service that translates the ip= option and all its little related settings from the kernel command line (peep the list below, bestie) into systemd.network(5), systemd.netdev(5), and systemd.link(5) configuration files โ the exact ones that systemd-networkd.service(8) and systemd-udevd.service(8) actually understand and vibe with. ๐ซถ
The files get generated in /run/systemd/network/. yes, that's the spot. ๐โจ
โ ๏ธ Note, and this one matters: despite the name, this generator executes as a normal systemd service and is not an implementation of the systemd.generator(7) concept. the name is giving generator but it's not that kind of generator, okay?? iykyk. ๐
๐ KERNEL COMMAND LINE OPTIONS ๐
This tool understands the following options, and yes we're going through every single one:
ip=,nameserver=,rd.route=,rd.peerdns=โ these get translated intosystemd.network(5)files. ๐ In addition to the parametersdracut.cmdline(7)defines, theip=option accepts the special value"link-local". If you select that, the network interfaces will be configured for link-local addressing (IPv4LL, IPv6LL) only โ DHCP or IPv6RA will not be enabled. no cap, that's the whole vibe. ๐ Added in version 245.ifname=,net.ifname_policy=โ translated intosystemd.link(5)files. ๐ฆ Added in version 245.vlan=,bond=,bridge=,bootdev=โ translated intosystemd.netdev(5)files. ๐ฅ Added in version 245.BOOTIF=,rd.bootif=โ whenBOOTIFis specified in the interface field ofip=, it is treated as a special placeholder rather than a real interface name. Then, in combination with the MAC address provided byBOOTIF=, this gets translated into asystemd.network(5)file which matches on the provided MAC address. and whenrd.bootif=0is passed, this functionality is disabled, and theBOOTIF=option is ignored. periodt. ๐ Seedracut.cmdline(7)for details on the usage of these options. Added in version 261.
See dracut.cmdline(7) and systemd-udevd.service(8) for option syntax and details. go read those too, bestie, they're not boring i promise. ๐
๐ CREDENTIALS ๐
systemd-network-generator supports the service credentials logic as implemented by ImportCredential= / LoadCredential= / SetCredential= (see systemd.exec(5) for the deets). The following credentials are used when passed in:
network.conf.*,network.link.*,network.netdev.*,network.network.*โ these credentials should contain validnetworkd.conf(5),systemd.link(5),systemd.netdev(5),systemd.network(5)configuration data. From each matching credential a separate file is created. โจ Example, because examples ate: a passed credentialnetwork.link.50-foobarwill be copied into a configuration file50-foobar.link. iconic. ๐
โ ๏ธ Note that the resulting files are created world-readable, so it is hence recommended to not include secrets in these credentials โ instead supply them via separate credentials directly to systemd-networkd.service(8). seriously, don't put your secrets in there, i'm begging. ๐ญ
Added in version 256.
Note that by default the systemd-networkd.service(8) service is set up to inherit the these credentials from the service manager. ๐ง
โญ SEE ALSO โญ
systemd(1), systemd-networkd.service(8), dracut(8)
and that's the whole page bestie!! this one came from systemd 262.1, and it's the SYSTEMD-....SERVICE(8) manual โ go forth and generate those network configs, you absolute legend. ๐โจ๐๐ฆ๐ธ๐
๐ซถ
๐ฆ where this page comes from
- arch rolling: systemd 262.1-1 ยท LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms