From 2bf649367eba5960504b2a462cb6fd4c88195017 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 10 Dec 2020 12:55:37 +0100 Subject: [PATCH] Use pointopoint link for ospf --- hosts/dn42-il-gw5/configuration.nix | 6 ++++++ hosts/dn42-il-gw6/configuration.nix | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/dn42-il-gw5/configuration.nix b/hosts/dn42-il-gw5/configuration.nix index c74235a..4c3badc 100644 --- a/hosts/dn42-il-gw5/configuration.nix +++ b/hosts/dn42-il-gw5/configuration.nix @@ -26,6 +26,8 @@ networking.interfaces.ens21.ipv6.addresses = [ { address = "2001:638:904:ffc9::a"; prefixLength = 64; } ]; # Ildix networking.interfaces.ens22.ipv6.addresses = [ { address = "fd81:edb3:71d8:ffff:2574::5"; prefixLength = 64; } ]; + # OSPF Netz dn42-il-gw6 + networking.interfaces.ens23 = {}; networking.defaultGateway = { address = "192.168.10.1"; interface = "ens18"; }; networking.defaultGateway6 = { address = "2001:638:904:ffc9::1"; interface = "ens21"; }; @@ -98,6 +100,10 @@ cost 80; type broadcast; }; + interface "ens23" { + cost 80; + type pointopoint; + }; }; } diff --git a/hosts/dn42-il-gw6/configuration.nix b/hosts/dn42-il-gw6/configuration.nix index 66fb1ce..09ab371 100644 --- a/hosts/dn42-il-gw6/configuration.nix +++ b/hosts/dn42-il-gw6/configuration.nix @@ -22,7 +22,7 @@ networking.interfaces.ens19.ipv6.addresses = [ { address = "fd81:edb3:71d8:ffff:2574::6"; prefixLength = 64; } ]; # VM Nat Netz mercury networking.interfaces.ens20.ipv4.addresses = [ { address = "192.168.10.26"; prefixLength = 24; } ]; - # OSPF Netz + # OSPF Netz dn42-il-gw6 networking.interfaces.ens21 = {}; @@ -88,7 +88,7 @@ area 0 { interface "ens21" { cost 80; - type broadcast; + type pointopoint; }; }; }