networkd: Add example to create MACVTAP and attach it to a link (#4946)

Fixes: #4914
This commit is contained in:
Susant Sahani 2016-12-23 22:39:29 +05:30 committed by Lennart Poettering
parent 07d6181589
commit 42125eda21
2 changed files with 21 additions and 0 deletions

View file

@ -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>

View 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>