devices.srv1.node2: add bridge interface

This commit is contained in:
陈浩南 2024-09-27 12:46:26 +08:00
parent 7d27bad072
commit 52b9ed4441

View File

@ -37,5 +37,11 @@ inputs:
boot.initrd.systemd.network.networks."10-eno2" = inputs.config.systemd.network.networks."10-eno2";
# make slurm sub process to be able to communicate with the master
networking.firewall.trustedInterfaces = [ "eno2" ];
# add a bridge for kvm
networking =
{
bridges.br0.interfaces = [ "eno1" ];
interfaces.br0.useDHCP = true;
};
};
}