X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd.network.xml;h=738977ee8dfde98c7d6c6c8f2ac755429a8f0fe7;hp=349ccc5dc91a8537291289c6e9114a9c0d433082;hb=5d8e593dce074bff966fc0a46579c61b4f3bc33a;hpb=4bb278e51e81ea3c5c62e1f7e296309b0fac8e3d diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 349ccc5dc..738977ee8 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,7 +195,17 @@ DHCP= - A boolean. When true, enables basic DHCPv4 support. + Enables DHCPv4 and/or DHCPv6 support. Accepts + both, none, + v4 or v6. + + + + DHCPServer= + + A boolean. Enables a basic DHCPv4 server on the + device. Mostly useful for handing out leases to container + instances. @@ -214,7 +234,7 @@ If the specified address is 0.0.0.0 (for IPv4) or [::] - (for IPv6) a new + (for IPv6), a new address range of the requested size is automatically @@ -227,14 +247,14 @@ interfaces and all known network configuration files to - avoid IP range + 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::] for + and fc00::/7 for IPv6. This functionality is useful to manage a @@ -266,6 +286,7 @@ This option may be specified more than once. + Bridge= @@ -292,8 +313,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. @@ -305,6 +345,13 @@ 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= @@ -321,7 +368,10 @@ + + + [Route] Section Options The [Route] section accepts the following keys. Specify several [Route] sections to configure several routes. @@ -339,9 +389,18 @@ prefixlength. If ommitted, 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: @@ -358,6 +417,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= @@ -365,6 +431,13 @@ will be used as the transient hostname. + + 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= @@ -421,6 +494,45 @@ 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 +