X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd.network.xml;h=67f10e1ef5887103977e5f68b9e179e8a9727c1b;hp=8a39fc4fa4e12339e1ec0057fe6317c50c7bd688;hb=ed942a9eb22d50f667909ad6184b45015d28d054;hpb=cb44f25c12f6203ad1f173d5b32d4059f446508e diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 8a39fc4fa..67f10e1ef 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -78,6 +78,11 @@ /usr/lib, pointing to /dev/null, disables the configuration file entirely. + + + + [Match] Section Options + The network file contains a [Match] section, which determines if a given network file may be applied to a given device; and a [Network] section specifying how the device should @@ -172,6 +177,11 @@ + + + + [Network] Section Options + The [Network] section accepts the following keys: @@ -185,15 +195,18 @@ DHCP= - A boolean. When true, enables basic DHCPv4 support. + Enables DHCPv4 and/or DHCPv6 support. Accepts + both, none, + v4 or v6. IPv4LL= A boolean. When true, enables IPv4 link-local support. - If DHCP= is also true, IPv4 link-local - address will be removed upon acquiring a DHCP lease. + If DHCP= is also true, acquiring DHCP address + will deprecate previously acquired IPv4 link-local address or + stop acquiring process if one has not been acquired before. @@ -209,6 +222,43 @@ an Address key (see below). This option may be specified more than once. + + If the specified + address is 0.0.0.0 + (for IPv4) or [::] + (for IPv6), a new + address range of the + requested size is + automatically + allocated from a + system-wide pool of + unused ranges. The + allocated range is + checked against all + current network + interfaces and all + known network + configuration files to + avoid address range + conflicts. The default + system-wide pool + consists of + 192.168.0.0/16, + 172.16.0.0/12 and + 10.0.0.0/8 for IPv4, + and fc00::/7 for + IPv6. This + functionality is + useful to manage a + large number of + dynamically created + network interfaces + with the same network + configuration and + automatic address + range + assignment. + @@ -256,6 +306,11 @@ + + + + [Address] Section Options + An [Address] section accepts the following keys. Specify several [Address] sections to configure several addresses. @@ -271,8 +326,8 @@ Broadcast= The broadcast address, which must be in the format described in - inet_pton3 - . This key only applies to IPv4 addresses. If it is not given, it is + inet_pton3. + This key only applies to IPv4 addresses. If it is not given, it is derived from the Address key. @@ -283,7 +338,10 @@ + + + [Route] Section Options The [Route] section accepts the following keys. Specify several [Route] sections to configure several routes. @@ -298,12 +356,15 @@ Destination= The destination prefix of the route. Possibly followed by a slash and the - prefixlength, if ommitted a full-length host route is assumed. + prefixlength. If ommitted, a full-length host route is assumed. + - The [DHCPv4] section accepts the following keys: + + [DHCP] Section Options + The [DHCP] section accepts the following keys: @@ -362,13 +423,35 @@ Name=en* DHCP=yes + + /etc/systemd/network/bridge-static.network + + [Match] +Name=bridge0 + +[Network] +Address=192.168.0.15/24 +Gateway=192.168.0.1 +DNS=192.168.0.1 + + + + /etc/systemd/network/bridge-slave-interface.network + + [Match] +Name=enp2s0 + +[Network] +Bridge=bridge0 + See Also systemd1, - systemd-networkd8 + systemd-networkd8, + systemd.netdev5