summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@users.noreply.github.com>2016-12-23 22:39:29 +0530
committerLennart Poettering <lennart@poettering.net>2016-12-23 18:09:29 +0100
commit42125eda21398112160ed364dca2f7bd391d5afd (patch)
tree94fe620cd81754be0ccccf1e846070aed8687eef
parent07d61815894c9cc30935fcc000814468585a79a7 (diff)
networkd: Add example to create MACVTAP and attach it to a link (#4946)
Fixes: #4914
-rw-r--r--man/systemd.netdev.xml9
-rw-r--r--man/systemd.network.xml12
2 files changed, 21 insertions, 0 deletions
diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml
index 5145b019ae..ef6a37fe76 100644
--- a/man/systemd.netdev.xml
+++ b/man/systemd.netdev.xml
@@ -1230,6 +1230,15 @@ Kind=vrf
[VRF]
TableId=42</programlisting>
</example>
+
+ <example>
+ <title>/etc/systemd/network/25-macvtap.netdev</title>
+ <para>Create a MacVTap device.</para>
+ <programlisting>[NetDev]
+Name=macvtap-test
+Kind=macvtap
+ </programlisting>
+ </example>
</refsect1>
<refsect1>
<title>See Also</title>
diff --git a/man/systemd.network.xml b/man/systemd.network.xml
index ea9cdeae88..8d44779a0c 100644
--- a/man/systemd.network.xml
+++ b/man/systemd.network.xml
@@ -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>