| 1 |
'\" t |
| 2 |
.TH "SYSTEMD\-NETWORK\-GENERATOR\&.SERVICE" "8" "" "systemd 257.13" "systemd-network-generator.service" |
| 3 |
.\" ----------------------------------------------------------------- |
| 4 |
.\" * Define some portability stuff |
| 5 |
.\" ----------------------------------------------------------------- |
| 6 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 7 |
.\" http://bugs.debian.org/507673 |
| 8 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 9 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 10 |
.ie \n(.g .ds Aq \(aq |
| 11 |
.el .ds Aq ' |
| 12 |
.\" ----------------------------------------------------------------- |
| 13 |
.\" * set default formatting |
| 14 |
.\" ----------------------------------------------------------------- |
| 15 |
.\" disable hyphenation |
| 16 |
.nh |
| 17 |
.\" disable justification (adjust text to left margin only) |
| 18 |
.ad l |
| 19 |
.\" ----------------------------------------------------------------- |
| 20 |
.\" * MAIN CONTENT STARTS HERE * |
| 21 |
.\" ----------------------------------------------------------------- |
| 22 |
.SH "NAME" |
| 23 |
systemd-network-generator.service, systemd-network-generator \- Generate network configuration from the kernel command line |
| 24 |
.SH "SYNOPSIS" |
| 25 |
.PP |
| 26 |
systemd\-network\-generator\&.service |
| 27 |
.PP |
| 28 |
/usr/lib/systemd/systemd\-network\-generator |
| 29 |
.SH "DESCRIPTION" |
| 30 |
.PP |
| 31 |
systemd\-network\-generator\&.service |
| 32 |
is a system service that translates |
| 33 |
\fIip=\fR |
| 34 |
and related settings on the kernel command line (see below) into |
| 35 |
\fBsystemd.network\fR(5), |
| 36 |
\fBsystemd.netdev\fR(5), and |
| 37 |
\fBsystemd.link\fR(5) |
| 38 |
configuration files understood by |
| 39 |
\fBsystemd-networkd.service\fR(8) |
| 40 |
and |
| 41 |
\fBsystemd-udevd.service\fR(8)\&. |
| 42 |
.PP |
| 43 |
Files are generated in |
| 44 |
/run/systemd/network/\&. |
| 45 |
.PP |
| 46 |
Note: despite the name, this generator executes as a normal systemd service and is |
| 47 |
\fInot\fR |
| 48 |
an implementation of the |
| 49 |
\fBsystemd.generator\fR(7) |
| 50 |
concept\&. |
| 51 |
.SH "KERNEL COMMAND LINE OPTIONS" |
| 52 |
.PP |
| 53 |
This tool understands the following options: |
| 54 |
.PP |
| 55 |
\fIip=\fR, \fInameserver=\fR, \fIrd\&.route=\fR, \fIrd\&.peerdns=\fR |
| 56 |
.RS 4 |
| 57 |
Translated into |
| 58 |
\fBsystemd.network\fR(5) |
| 59 |
files\&. |
| 60 |
.sp |
| 61 |
In addition to the parameters |
| 62 |
\fBdracut.cmdline\fR(7) |
| 63 |
defines the |
| 64 |
\fIip=\fR |
| 65 |
option accepts the special value |
| 66 |
"link\-local"\&. If selected, the network interfaces will be configured for link\-local addressing (IPv4LL, IPv6LL) only, DHCP or IPv6RA will not be enabled\&. |
| 67 |
.sp |
| 68 |
Added in version 245\&. |
| 69 |
.RE |
| 70 |
.PP |
| 71 |
\fIifname=\fR, \fInet\&.ifname_policy=\fR |
| 72 |
.RS 4 |
| 73 |
Translated into |
| 74 |
\fBsystemd.link\fR(5) |
| 75 |
files\&. |
| 76 |
.sp |
| 77 |
Added in version 245\&. |
| 78 |
.RE |
| 79 |
.PP |
| 80 |
\fIvlan=\fR, \fIbond=\fR, \fIbridge=\fR, \fIbootdev=\fR |
| 81 |
.RS 4 |
| 82 |
Translated into |
| 83 |
\fBsystemd.netdev\fR(5) |
| 84 |
files\&. |
| 85 |
.sp |
| 86 |
Added in version 245\&. |
| 87 |
.RE |
| 88 |
.PP |
| 89 |
See |
| 90 |
\fBdracut.cmdline\fR(7) |
| 91 |
and |
| 92 |
\fBsystemd-udevd.service\fR(8) |
| 93 |
for option syntax and details\&. |
| 94 |
.SH "CREDENTIALS" |
| 95 |
.PP |
| 96 |
\fBsystemd\-network\-generator\fR |
| 97 |
supports the service credentials logic as implemented by |
| 98 |
\fIImportCredential=\fR/\fILoadCredential=\fR/\fISetCredential=\fR |
| 99 |
(see |
| 100 |
\fBsystemd.exec\fR(5) |
| 101 |
for details)\&. The following credentials are used when passed in: |
| 102 |
.PP |
| 103 |
\fInetwork\&.conf\&.*\fR, \fInetwork\&.link\&.*\fR, \fInetwork\&.netdev\&.*\fR, \fInetwork\&.network\&.*\fR |
| 104 |
.RS 4 |
| 105 |
These credentials should contain valid |
| 106 |
\fBnetworkd.conf\fR(5), |
| 107 |
\fBsystemd.link\fR(5), |
| 108 |
\fBsystemd.netdev\fR(5), |
| 109 |
\fBsystemd.network\fR(5) |
| 110 |
configuration data\&. From each matching credential a separate file is created\&. Example: a passed credential |
| 111 |
network\&.link\&.50\-foobar |
| 112 |
will be copied into a configuration file |
| 113 |
50\-foobar\&.link\&. |
| 114 |
.sp |
| 115 |
Note that the resulting files are created world\-readable, it is hence recommended to not include secrets in these credentials, but to supply them via separate credentials directly to |
| 116 |
\fBsystemd-networkd.service\fR(8)\&. |
| 117 |
.sp |
| 118 |
Added in version 256\&. |
| 119 |
.RE |
| 120 |
.PP |
| 121 |
Note that by default the |
| 122 |
\fBsystemd-networkd.service\fR(8) |
| 123 |
service is set up to inherit the these credentials from the service manager\&. |
| 124 |
.SH "SEE ALSO" |
| 125 |
.PP |
| 126 |
\fBsystemd\fR(1), \fBsystemd-networkd.service\fR(8), \fBdracut\fR(8) |