From: George Clemmer <myglc2@gmail.com>
To: Julien Lepiller <julien@lepiller.eu>
Cc: help-guix@gnu.org
Subject: Re: static-networking-service
Date: Sun, 16 Dec 2018 13:07:15 -0500 [thread overview]
Message-ID: <cucimztxs4s.fsf@gmail.com> (raw)
In-Reply-To: <ac0a7025661002e8b27db1ae84248337@lepiller.eu>
Julien Lepiller <julien@lepiller.eu> writes:
> static-networking-service is also limited to IPv4. I wanted to
> configure an
> IPv6 address, so I quickly wrote a service for this:
> (define (iproute2-shepherd-service config)
> (list (shepherd-service
> (documentation "Run the iproute2 network service")
> (provision '(networking))
> (requirement '())
> (start #~(lambda _
> (let ((ip (string-append #$iproute "/sbin/ip")))
> (system* ip "a" "add" "89.234.186.109/32" "dev"
> "ens18")
> (system* ip "l" "set" "ens18" "up")
> (system* ip "-6" "a" "add"
> "2a00:5884:8208::1/48" "dev" "ens18")
> (system* ip "r" "add" "89.234.186.1" "dev"
> "ens18")
> (system* ip "r" "add" "default" "via"
> "89.234.186.1" "dev" "ens18")
> (system* ip "-6" "r" "add" "default" "via"
> "fe80::204:92:100:1" "dev" "ens18"))))
> (stop #~(lambda _
> (display "Cannot stop iproute2 service.\n"))))))
Hi Julien,
Are you actually using this? Does it simply (static-networking-service)?
TIA - George
next prev parent reply other threads:[~2018-12-16 18:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-31 7:44 static-networking-service Catonano
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
2018-05-31 11:14 ` static-networking-service Julien Lepiller
2018-06-04 11:56 ` static-networking-service Ludovic Courtès
2018-12-16 18:07 ` George Clemmer [this message]
2018-12-16 19:01 ` static-networking-service Julien Lepiller
2018-12-16 18:09 ` static-networking-service George Clemmer
2018-12-16 21:57 ` static-networking-service Ricardo Wurmus
2018-05-31 16:40 ` static-networking-service Oleg Pykhalov
2018-06-10 7:31 ` static-networking-service Chris Marusich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cucimztxs4s.fsf@gmail.com \
--to=myglc2@gmail.com \
--cc=help-guix@gnu.org \
--cc=julien@lepiller.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.