mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 01:59:19 +08:00
devices.srv1.node2: add bridge interface
This commit is contained in:
parent
7d27bad072
commit
52b9ed4441
@ -37,5 +37,11 @@ inputs:
|
|||||||
boot.initrd.systemd.network.networks."10-eno2" = inputs.config.systemd.network.networks."10-eno2";
|
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
|
# make slurm sub process to be able to communicate with the master
|
||||||
networking.firewall.trustedInterfaces = [ "eno2" ];
|
networking.firewall.trustedInterfaces = [ "eno2" ];
|
||||||
|
# add a bridge for kvm
|
||||||
|
networking =
|
||||||
|
{
|
||||||
|
bridges.br0.interfaces = [ "eno1" ];
|
||||||
|
interfaces.br0.useDHCP = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user