X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd.network.xml;h=484d6f31c78dc76b3c0103442215f69a05b0e0d8;hp=8a39fc4fa4e12339e1ec0057fe6317c50c7bd688;hb=cb9fc36a1211967e8c58b0502a26c42552ac8060;hpb=cb44f25c12f6203ad1f173d5b32d4059f446508e
diff --git a/man/systemd.network.xml b/man/systemd.network.xml
index 8a39fc4fa..484d6f31c 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,35 @@
+
+
+
+ [Link] Section Options
+
+ The [Link] section accepts the following keys:
+
+
+
+ MACAddress=
+
+ The hardware address.
+
+
+
+ MTUBytes=
+
+ The maximum transmission unit in bytes to
+ set for the device. The usual suffixes K, M, G,
+ are supported and are understood to the base of
+ 1024.
+
+
+
+
+
+
+ [Network] Section Options
+
The [Network] section accepts the following keys:
@@ -185,15 +219,48 @@
DHCP=
- A boolean. When true, enables basic DHCPv4 support.
+ Enables DHCPv4 and/or DHCPv6 support. Accepts
+ yes, no,
+ ipv4 or ipv6.
+
+
+
+ DHCPServer=
+
+ A boolean. Enables a basic DHCPv4 server on the
+ device. Mostly useful for handing out leases to container
+ instances.
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.
+
+
+
+
+ IPv4LLRoute=
+
+ A boolean. When true, sets up the route needed for
+ non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
+ to false.
+
+
+
+
+ LLMNR=
+
+ A boolean or resolve. When true, enables
+ Link-Local Multicast Name Resolution on the link, when set to
+ resolve only resolution is enabled, but not
+ announcement. Defaults to true.
+
+
+
+ LLDP=
+
+ A boolean. When true, enables LLDP link receive support.
@@ -209,6 +276,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.
+
@@ -228,6 +332,42 @@
This option may be specified more than once.
+
+ Domains=
+
+ The domains used for DNS resolution over this link.
+
+
+
+ NTP=
+
+ An NTP server address. This option may be specified more than once.
+
+
+
+ IPForward=
+ Configures IP
+ forwarding for the network
+ interface. If enabled incoming
+ packets on the network
+ interface will be forwarded to
+ other interfaces according to
+ the routing table. Takes a
+ boolean
+ argument.
+
+
+ IPMasquerade=
+ Configures IP
+ masquerading for the network
+ interface. If enabled packets
+ forwarded from the network
+ interface will be appear as
+ coming from the local
+ host. Takes a boolean
+ argument. Implies
+ IPForward=yes.
+
Bridge=
@@ -254,8 +394,27 @@
may be specified more than once.
+
+ VXLAN=
+
+ The name of a VXLAN to create on the link. This option
+ may be specified more than once.
+
+
+
+ Tunnel=
+
+ The name of a Tunnel to create on the link. This option
+ may be specified more than once.
+
+
+
+
+
+ [Address] Section Options
+
An [Address] section accepts the following keys.
Specify several [Address] sections to configure several
addresses.
@@ -267,12 +426,19 @@
As in the [Network] section. This key is mandatory.
+
+ Peer=
+
+ The peer address in a point-to-point connection. Accepts the same format as
+ the Address key.
+
+
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 +449,10 @@
+
+
+ [Route] Section Options
The [Route] section accepts the following keys. Specify
several [Route] sections to configure several routes.
@@ -291,19 +460,35 @@
Gateway=
- As in the [Network] section. This key is mandatory.
+ As in the [Network] section.
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 omitted, a full-length host route is assumed.
+
+
+
+ Source=
+
+ The source prefix of the route. Possibly followed by a slash and the
+ prefixlength. If omitted, a full-length host route is assumed.
+
+
+
+ Metric=
+
+ The metric of the route. An unsigned integer
+
- The [DHCPv4] section accepts the following keys:
+
+ [DHCP] Section Options
+ The [DHCP] section accepts the following keys:
@@ -320,6 +505,13 @@
be used on the current link. Defaults to false.
+
+ SendHostname=
+
+ When true (the default), the machine's hostname will be sent to the DHCP
+ server
+
+
UseHostname=
@@ -327,6 +519,20 @@
will be used as the transient hostname.
+
+ UseDomains=
+
+ When true (not the default), the domain name received from the DHCP server
+ will be used for DNS resolution over this link.
+
+
+
+ UseRoutes=
+
+ When true (the default), the static routes will be requested from the DHCP server
+ and added to the routing table with metric of 1024.
+
+
CriticalConnection=
@@ -335,10 +541,66 @@
if, say, the root filesystem relies on this connection. Defaults to false.
+
+ VendorClassIdentifier=
+
+ The vendor class identifier used to identify vendor type and configuration.
+
+
+
+ RequestBroadcast=
+
+ Request the server to use broadcast messages before the IP address has been
+ configured. This is necessary for devices that cannot receive RAW packets, or that
+ cannot receive packets at all before an IP address has been configured. On the other
+ hand, this must not be enabled on networks where broadcasts are filtered out.
+
+
+
+ RouteMetric=
+
+ Set the routing metric for routes specified by the DHCP server.
+
+
+
+ [Bridge] Section Options
+ The [Bridge] section accepts the following keys.
+
+
+ Cost=
+
+ Each port in a bridge may have different speed. Cost is used to decide which link to use. Faster interfaces should have lower costs
+
+
+
+
+
+
+ [BridgeFDB] Section Options
+ The [BridgeFDB] section manages the forwarding database table of a port and accepts the following keys. Specify
+ several [BridgeFDB] sections to configure several static MAC table entries.
+
+
+
+ MACAddress=
+
+ As in the [Network] section. This key is mandatory.
+
+
+
+ VLANId=
+
+ The VLAN Id for the new static MAC table entry.
+ If omitted, no VLAN Id info is appended to the new static MAC table entry.
+
+
+
+
+
Example
@@ -359,16 +621,78 @@ Gateway=192.168.0.1
Name=en*
[Network]
-DHCP=yes
+DHCP=both
+
+ /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
+
+
+ /etc/systemd/network/ipip.network
+
+ [Match]
+Name=em1
+
+[Network]
+Tunnel=ipip-tun
+
+
+
+ /etc/systemd/network/sit.network
+
+ [Match]
+Name=em1
+
+[Network]
+Tunnel=sit-tun
+
+
+
+ /etc/systemd/network/gre.network
+
+ [Match]
+Name=em1
+
+[Network]
+Tunnel=gre-tun
+
+
+
+ /etc/systemd/network/vti.network
+
+ [Match]
+Name=em1
+
+[Network]
+Tunnel=vti-tun
+
See Also
systemd1,
- systemd-networkd8
+ systemd-networkd8,
+ systemd.link5,
+ systemd.netdev5