2022-10-26 06:34:13 +00:00
|
|
|
# SPDX-License-Identifier: MIT-0
|
2020-04-16 11:05:32 +00:00
|
|
|
#
|
2022-01-11 16:52:35 +00:00
|
|
|
# This config file is installed as part of systemd.
|
2022-10-26 06:34:13 +00:00
|
|
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
2020-04-16 11:05:32 +00:00
|
|
|
#
|
2022-01-11 16:52:35 +00:00
|
|
|
# To make local modifications, one of the following methods may be used:
|
|
|
|
# 1. add a drop-in file that extends this file by creating the
|
|
|
|
# /etc/systemd/network/80-vm-vt.network.d/ directory and creating a
|
|
|
|
# new .conf file there.
|
|
|
|
# 2. copy this file into /etc/systemd/network or one of the other paths checked
|
|
|
|
# by systemd-networkd and edit it there.
|
|
|
|
# This file should not be edited in place, because it'll be overwritten on upgrades.
|
2020-04-16 11:05:32 +00:00
|
|
|
|
|
|
|
# This network file matches vt-* TUN/TAP devices and applies a similar
|
|
|
|
# configuration as ve-* to provide NAT/DHCP to VMs.
|
|
|
|
|
|
|
|
[Match]
|
2023-11-08 13:59:33 +00:00
|
|
|
Kind=tun
|
2020-04-16 11:05:32 +00:00
|
|
|
Name=vt-*
|
|
|
|
|
|
|
|
[Network]
|
|
|
|
# Default to using a /28 prefix, giving up to 13 addresses per VM.
|
|
|
|
Address=0.0.0.0/28
|
|
|
|
LinkLocalAddressing=yes
|
|
|
|
DHCPServer=yes
|
2021-02-24 11:29:24 +00:00
|
|
|
IPMasquerade=both
|
2020-04-16 11:05:32 +00:00
|
|
|
LLDP=yes
|
|
|
|
EmitLLDP=customer-bridge
|
2023-11-02 04:29:45 +00:00
|
|
|
IPv6AcceptRA=no
|
2020-12-26 14:27:55 +00:00
|
|
|
IPv6SendRA=yes
|