From 23747424dabeef517d8ce28d2d4c0301c07f87fe Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 17 Dec 2020 01:21:50 +0100 Subject: [PATCH] Add local interface to carbon --- hosts/carbon/configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index 4c52d3f..78fae22 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -33,6 +33,8 @@ ]; # Network networking.interfaces.enp1s0.useDHCP = true; + networking.interfaces.enp2s0.ipv6.addresses = [ { address = "fd00:152:152:4::1"; prefixLength = 64; } ]; + networking.interfaces.enp2s0.ipv4.addresses = [ { address = "10.152.4.1"; prefixLength = 24; } ]; networking.wireguard.enable = true; networking.wireguard.interfaces = { @@ -56,7 +58,7 @@ ipv6 table ospf6; ipv4 table ospf4; - protocol direct { + protocol direct direct_lo { interface "lo"; ipv6 { table ospf6; @@ -66,6 +68,16 @@ }; } + protocol direct direct_enp2s0 { + interface "enp2s0"; + ipv6 { + table ospf6; + }; + ipv4 { + table ospf4; + }; + } + protocol kernel kernel_6 { ipv6 { table ospf6;