Debian Codegraph @

network/80-vm-vt.network

raw
1 # SPDX-License-Identifier: MIT-0
2 #
3 # This config file is installed as part of systemd.
4 # It may be freely copied and edited (following the MIT No Attribution license).
5 #
6 # To make local modifications, use "networkctl edit". See networkctl(1) for details.
7 # This file should not be edited in place, because it'll be overwritten on upgrades.
8
9 # This network file matches vt-* TUN/TAP devices and applies a similar
10 # configuration as ve-* to provide NAT/DHCP to VMs.
11
12 [Match]
13 Kind=tun
14 Name=vt-*
15
16 [Link]
17 RequiredForOnline=no
18
19 [Network]
20 # Default to using a /28 prefix, giving up to 13 addresses per VM.
21 Address=0.0.0.0/28
22 LinkLocalAddressing=yes
23 DHCPServer=yes
24 IPMasquerade=both
25 LLDP=yes
26 EmitLLDP=customer-bridge
27 IPv6AcceptRA=no
28 IPv6SendRA=yes
29
30 [DHCPServer]
31 PersistLeases=runtime
32 LocalLeaseDomain=_dhcp