mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03: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]
|
||||
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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user