Fix networking
This commit is contained in:
parent
12c5f518ec
commit
0883930abe
|
@ -32,7 +32,18 @@ in {
|
||||||
};
|
};
|
||||||
systemd.tmpfiles.rules =
|
systemd.tmpfiles.rules =
|
||||||
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
|
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
|
||||||
|
|
||||||
|
##
|
||||||
|
## Networking
|
||||||
|
##
|
||||||
# Setup bridge
|
# Setup bridge
|
||||||
networking.bridges = { "qemu-br0" = { interfaces = [ "enp6s0" ]; }; };
|
networking.bridges = { "qemu-br0" = { interfaces = [ "enp6s0" ]; }; };
|
||||||
networking.interfaces."qemu-br0".useDHCP = true;
|
networking.interfaces.qemu-br0 = {
|
||||||
|
ipv4.addresses = [{
|
||||||
|
address = "10.0.0.247";
|
||||||
|
prefixLength = 21;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
networking.defaultGateway = "10.0.4.1";
|
||||||
|
networking.nameservers = [ "10.0.0.10" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue