forked from fediversity/fediversity
rename bridge
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
1b9c99b2d3
commit
a973c2589f
1 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ let
|
||||||
];
|
];
|
||||||
key-file = "/root/.ssh/id_ed25519";
|
key-file = "/root/.ssh/id_ed25519";
|
||||||
node-name = "pve";
|
node-name = "pve";
|
||||||
bridge = "br-vm";
|
bridge = "br0";
|
||||||
vlanId = 0;
|
vlanId = 0;
|
||||||
imageDatastoreId = "local";
|
imageDatastoreId = "local";
|
||||||
vmDatastoreId = "local";
|
vmDatastoreId = "local";
|
||||||
|
|
@ -73,8 +73,8 @@ in
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
bridges.br-vm.interfaces = [ ]; # internal bridge
|
bridges.br0.interfaces = [ ];
|
||||||
interfaces.br-vm.ipv4.addresses = [
|
interfaces.br0.ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "192.168.10.1";
|
address = "192.168.10.1";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
|
|
@ -82,7 +82,7 @@ in
|
||||||
];
|
];
|
||||||
nat = {
|
nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalInterfaces = [ "br-vm" ];
|
internalInterfaces = [ "br0" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
|
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue