all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: George Clemmer <myglc2@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: static-networking-service
Date: Sun, 16 Dec 2018 20:01:58 +0100	[thread overview]
Message-ID: <0337824A-5453-48D4-A5C9-ECF231933B8C@lepiller.eu> (raw)
In-Reply-To: <cucimztxs4s.fsf@gmail.com>

I use it like that:  (service iproute2-service-type #t)

You can see my complete configuration on https://lepiller.eu/ma-configuration.html

Le 16 décembre 2018 19:07:15 GMT+01:00, George Clemmer <myglc2@gmail.com> a écrit :
>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

  reply	other threads:[~2018-12-16 19:16 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     ` static-networking-service George Clemmer
2018-12-16 19:01       ` Julien Lepiller [this message]
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=0337824A-5453-48D4-A5C9-ECF231933B8C@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=help-guix@gnu.org \
    --cc=myglc2@gmail.com \
    /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.