forked from mirrors_public/oddlama_nix-config
chore: use macvlan for container guests
This commit is contained in:
parent
6f1c20a718
commit
b4c7fbd0e8
1 changed files with 4 additions and 4 deletions
|
@ -14,14 +14,14 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create a MACVTAP for ourselves too, so that we can communicate with
|
# 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" = {
|
systemd.network.netdevs."10-lan-self" = {
|
||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Name = "lan-self";
|
Name = "lan-self";
|
||||||
Kind = "macvtap";
|
Kind = "macvlan";
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
[MACVTAP]
|
[MACVLAN]
|
||||||
Mode=bridge
|
Mode=bridge
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -36,7 +36,7 @@ in {
|
||||||
linkConfig.RequiredForOnline = "carrier";
|
linkConfig.RequiredForOnline = "carrier";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
[Network]
|
[Network]
|
||||||
MACVTAP=lan-self
|
MACVLAN=lan-self
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"10-wan" = {
|
"10-wan" = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue