Skip to content

Commit

Permalink
the network is not work again :(
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Apr 11, 2024
1 parent 731b2e7 commit d7ef68c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/ipam.sexp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
(net ULA-V6 fc00::/7
(net DC-ROUTER-SWITCHING "fd67:0113:7c37:3339::/64"
(description "Inter-router switch net")
)
(net CA7DC fca7:b01:f00d::/48
(description "IPs for the primary datacenter")

Expand Down
4 changes: 4 additions & 0 deletions machines/boop/net.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ in {
Name = "prodbr";
Kind = "bridge";
};
extraConfig = ''
[Bridge]
STP = yes
'';
};
networks."30-prodbr" = {
name = "prodbr";
Expand Down
13 changes: 7 additions & 6 deletions netconf/charon.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
(require "dn42.rkt")
(require "vyos-firewall.rkt")

(define upstream-ll-addr6 "fe80::5054:ff:fed6:96c")
(define upstream-ll-addr4 "169.254.0.1")
(define upstream-addr4 "169.254.0.1")
(define upstream-addr6 "fd67:0113:7c37:3339::1")
(define wan "eth0")
(define k8sbr "eth1")

Expand All @@ -16,17 +16,18 @@
(delete interfaces)
(set interfaces [(loopback lo)
(ethernet ,wan [(hw-id "52:54:00:0c:b0:df")
(description "Link to upstream firewall")
(address "169.254.0.2/24")])
(description "Inter-router network")
(address "169.254.0.2/24")
(address "fd67:0113:7c37:3339::2/64")])
(ethernet ,k8sbr [(hw-id "52:54:00:06:8c:9a")
(description "k8sbr")
(address "fca7:b01:f00d:c00b::1/64")
(address "2001:5a8:4002:9388::1/64")])])

(delete protocols static)
(set protocols static [(route "0.0.0.0/0" [(next-hop ,upstream-ll-addr4)
(set protocols static [(route "0.0.0.0/0" [(next-hop ,upstream-addr4)
(interface ,wan)])
(route6 "::/0" [(next-hop ,upstream-ll-addr6)
(route6 "::/0" [(next-hop ,upstream-addr6)
(interface ,wan)])])

(delete service router-advert)
Expand Down

0 comments on commit d7ef68c

Please sign in to comment.