chore: use macvlan for container guests

This commit is contained in:
oddlama 2023-12-17 20:56:42 +01:00
parent 6f1c20a718
commit b4c7fbd0e8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -14,14 +14,14 @@ in {
};
# Create a MACVTAP for ourselves too, so that we can communicate with
# other taps on the same interface.
# our guests on the same interface.
systemd.network.netdevs."10-lan-self" = {
netdevConfig = {
Name = "lan-self";
Kind = "macvtap";
Kind = "macvlan";
};
extraConfig = ''
[MACVTAP]
[MACVLAN]
Mode=bridge
'';
};
@ -36,7 +36,7 @@ in {
linkConfig.RequiredForOnline = "carrier";
extraConfig = ''
[Network]
MACVTAP=lan-self
MACVLAN=lan-self
'';
};
"10-wan" = {