guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: bayfront: Update static networking configu


From: Christopher Baines
Subject: branch master updated: hydra: bayfront: Update static networking configuration.
Date: Tue, 21 Dec 2021 08:57:51 -0500

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new df9649a  hydra: bayfront: Update static networking configuration.
df9649a is described below

commit df9649a56f34209b9baddf08516e280117cb55de
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Dec 21 13:56:43 2021 +0000

    hydra: bayfront: Update static networking configuration.
    
    * hydra/bayfront.scm (services): Update the static networking
    configuration to the new style, and add the IPv6 config.
---
 hydra/bayfront.scm | 40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 4d3e403..4ddd5fd 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -783,22 +783,30 @@ access_log  /var/log/nginx/bordeaux.access.log;"))
 
   (services
    (cons*
-    ;; TODO: create a bonding interface over ens9 + ens10
-    ;; TODO: configure ens10 as with:
-    ;;   ip a add dev ens10 2a0c:e300::58/48
-    ;;   ip route add default via inet6 2a0c:e300::126
-    (static-networking-service
-     "ens10" "185.233.100.56"
-     #:netmask "255.255.255.128"
-     #:gateway "185.233.100.126"
-     #:name-servers '("185.233.100.100" "185.233.100.101"))
-
-    ;; Alternate interface.
-    (static-networking-service
-     "ens9" "185.233.100.57"
-     #:netmask "255.255.255.128"
-     ;; Don't repeat #:gateway and #:name-servers.
-     )
+    (service static-networking-service-type
+             (list
+              (static-networking
+               (addresses
+                (list
+                 (network-address
+                  (device "ens10")
+                  (value "185.233.100.56/25"))
+                 (network-address
+                  (device "ens10")
+                  (value "2a0c:e300::58/48"))
+                 (network-address
+                  (device "ens9")
+                  (value "185.233.100.57/25"))))
+               (routes
+                (list
+                 (network-route
+                  (destination "default")
+                  (gateway "185.233.100.126"))
+                 (network-route
+                  (destination "default")
+                  (gateway "2a0c:e300::126"))))
+               (name-servers
+                '("185.233.100.100" "185.233.100.101")))))
 
     ;; Make SSH and HTTP/HTTPS available over Tor.
     (tor-hidden-service "http"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]