]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document the network interface size limits --network-veth= enforces
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Mar 2019 15:24:59 +0000 (16:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 14:13:33 +0000 (15:13 +0100)
Fixes: #10721
man/systemd-nspawn.xml

index 00c14eafebbcc2a8e45e175efee0034f7b70296c..e4373ba691f983b805e2886ed9c5e9df24748af9 100644 (file)
 
         <para>Note that <option>--network-veth</option> is the default if the
         <filename>systemd-nspawn@.service</filename> template unit file is used.</para>
+
+        <para>Note that on Linux network interface names may have a length of 15 characters at maximum, while
+        container names may have a length up to 64 characters. As this option derives the host-side interface
+        name from the container name the name is possibly truncated. Thus, care needs to be taken to ensure
+        that interface names remain unique in this case, or even better container names are generally not
+        chosen longer than 12 characters, to avoid the truncation. Alternatively, the
+        <option>--network-veth-extra=</option> option may be used, which allows free configuration of the
+        host-side interface name independently of the container name — but might require a bit more
+        additional configuration in case bridging in a fashion similar to <option>--network-bridge=</option>
+        is desired.</para>
         </listitem>
       </varlistentry>
 
       <varlistentry>
         <term><option>--network-bridge=</option></term>
 
-        <listitem><para>Adds the host side of the Ethernet link created with <option>--network-veth</option> to the
-        specified Ethernet bridge interface. Expects a valid network interface name of a bridge device as
-        argument. Note that <option>--network-bridge=</option> implies <option>--network-veth</option>. If this option
-        is used, the host side of the Ethernet link will use the <literal>vb-</literal> prefix instead of
-        <literal>ve-</literal>.</para></listitem>
+        <listitem><para>Adds the host side of the Ethernet link created with <option>--network-veth</option>
+        to the specified Ethernet bridge interface. Expects a valid network interface name of a bridge device
+        as argument. Note that <option>--network-bridge=</option> implies <option>--network-veth</option>. If
+        this option is used, the host side of the Ethernet link will use the <literal>vb-</literal> prefix
+        instead of <literal>ve-</literal>. Regardless of the used naming prefix the same network interface
+        name length limits imposed by Linux apply, along with the complications this creates (for details see
+        above).</para></listitem>
       </varlistentry>
 
       <varlistentry>