]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - man/systemd.network.xml
networkd: Add example to create MACVTAP and attach it to a link (#4946)
[thirdparty/systemd.git] / man / systemd.network.xml
index ea9cdeae880894778820bc9c633b46e3e3deb5ed..8d44779a0cb1f42371e0247835d5f2b949eec466 100644 (file)
@@ -1490,6 +1490,18 @@ VRF=vrf1
 </programlisting>
     </example>
 
+    <example>
+      <title>MacVTap</title>
+      <para>This brings up a network interface <literal>macvtap-test</literal>
+      and attaches it to <literal>enp0s25</literal>.</para>
+      <programlisting># /lib/systemd/network/25-macvtap.network
+[Match]
+Name=enp0s25
+
+[Network]
+MACVTAP=macvtap-test
+</programlisting>
+    </example>
   </refsect1>
 
   <refsect1>