[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: hydra: bayfront: Configure second ethernet interface.
From: |
Ludovic Courtès |
Subject: |
01/02: hydra: bayfront: Configure second ethernet interface. |
Date: |
Thu, 2 Feb 2017 09:14:05 +0000 (UTC) |
civodul pushed a commit to branch master
in repository maintenance.
commit ddfda94d07fffccf00cf73795b242f3e3f96f047
Author: Ludovic Courtès <address@hidden>
Date: Thu Feb 2 09:43:32 2017 +0100
hydra: bayfront: Configure second ethernet interface.
* hydra/bayfront.scm (services): Add 'static-networking-service' call
for ens9.
---
hydra/bayfront.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index ccb8256..08a66f6 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -135,7 +135,7 @@
(services (cons* (service sysadmin-service-type %sysadmins)
- ;; TODO: configure ens9 as 141.255.128.57.
+ ;; TODO: create a bonding interface over ens9 + ens10
;; TODO: configure ens10 as with:
;; ip a add dev ens10 2a01:474:0::56/48
;; ip -6 route add default via 2a01:474:0::126
@@ -145,6 +145,13 @@
#:gateway "141.255.128.126"
#:name-servers '("141.255.128.100" "141.255.129.101"))
+ ;; Alternate interface.
+ (static-networking-service
+ "ens9" "141.255.128.57"
+ #:netmask "255.255.255.128"
+ ;; Don't repeat #:gateway and #:name-servers.
+ )
+
(lsh-service #:port-number 22)
;; The Web service.