try again with bridge
This commit is contained in:
parent
75daf49c98
commit
d8a94d3e5c
2 changed files with 12 additions and 5 deletions
|
|
@ -100,7 +100,9 @@ in
|
|||
containers.gitea = {
|
||||
autoStart = true;
|
||||
ephemeral = true;
|
||||
macvlans = [ "vserver" ];
|
||||
# macvlans = [ "vserver" ];
|
||||
hostBridge = "server";
|
||||
localAddress = "10.42.97.1/24";
|
||||
bindMounts = {
|
||||
"/var/lib/gitea" = {
|
||||
hostPath = "/var/lib/gitea/";
|
||||
|
|
@ -116,7 +118,7 @@ in
|
|||
config = { lib, config, pkgs, ... }: {
|
||||
networking = {
|
||||
hostName = "fw";
|
||||
interfaces.mv-vserver = {
|
||||
interfaces.eth0 = {
|
||||
useDHCP = true;
|
||||
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -47,9 +47,14 @@
|
|||
interface = "enp5s0";
|
||||
};
|
||||
};
|
||||
macvlans.server = {
|
||||
interface = "vserver";
|
||||
mode = "bridge";
|
||||
# macvlans.server = {
|
||||
# interface = "vserver";
|
||||
# mode = "bridge";
|
||||
# };
|
||||
bridges = {
|
||||
server = {
|
||||
interfaces = [ "vserver" ];
|
||||
};
|
||||
};
|
||||
|
||||
interfaces = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue