mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
networkd: Add example to create MACVTAP and attach it to a link (#4946)
Fixes: #4914
This commit is contained in:
parent
07d6181589
commit
42125eda21
|
@ -1230,6 +1230,15 @@ Kind=vrf
|
||||||
[VRF]
|
[VRF]
|
||||||
TableId=42</programlisting>
|
TableId=42</programlisting>
|
||||||
</example>
|
</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>
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
|
|
|
@ -1490,6 +1490,18 @@ VRF=vrf1
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</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>
|
||||||
|
|
||||||
<refsect1>
|
<refsect1>
|
||||||
|
|
Loading…
Reference in a new issue