* static-networking-service
@ 2018-05-31 7:44 Catonano
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Catonano @ 2018-05-31 7:44 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
I think I could use some help about how to set up a networing device to be
used as a "bridge" for the libvirt-manager bridged networking
In the manual I found a procedure named static-networking-service but I
have no idea about how to use it
Thanks
[-- Attachment #2: Type: text/html, Size: 332 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 7:44 static-networking-service Catonano
@ 2018-05-31 10:00 ` Ricardo Wurmus
2018-05-31 11:14 ` static-networking-service Julien Lepiller
2018-12-16 18:09 ` static-networking-service George Clemmer
2018-05-31 16:40 ` static-networking-service Oleg Pykhalov
2018-06-10 7:31 ` static-networking-service Chris Marusich
2 siblings, 2 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2018-05-31 10:00 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
Catonano <catonano@gmail.com> writes:
> I think I could use some help about how to set up a networing device to be
> used as a "bridge" for the libvirt-manager bridged networking
>
> In the manual I found a procedure named static-networking-service but I
> have no idea about how to use it
The static-networking-service currently does not support setting up
bonding or bridges. It’s something I need for berlin.guixsd.org,
actually, so I’d be very happy to see this implemented :)
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
@ 2018-05-31 11:14 ` 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 18:09 ` static-networking-service George Clemmer
1 sibling, 2 replies; 10+ messages in thread
From: Julien Lepiller @ 2018-05-31 11:14 UTC (permalink / raw)
To: help-guix
Le 2018-05-31 12:00, Ricardo Wurmus a écrit :
> Catonano <catonano@gmail.com> writes:
>
>> I think I could use some help about how to set up a networing device
>> to be
>> used as a "bridge" for the libvirt-manager bridged networking
>>
>> In the manual I found a procedure named static-networking-service but
>> I
>> have no idea about how to use it
>
> The static-networking-service currently does not support setting up
> bonding or bridges. It’s something I need for berlin.guixsd.org,
> actually, so I’d be very happy to see this implemented :)
>
> --
> Ricardo
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"))))))
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 7:44 static-networking-service Catonano
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
@ 2018-05-31 16:40 ` Oleg Pykhalov
2018-06-10 7:31 ` static-networking-service Chris Marusich
2 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2018-05-31 16:40 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
Hello Catonano,
Catonano <catonano@gmail.com> writes:
> I think I could use some help about how to set up a networing device to be
> used as a "bridge" for the libvirt-manager bridged networking
>
> In the manual I found a procedure named static-networking-service but I
> have no idea about how to use it
As Julien mentioned, you probably could wrote a service which invokes
shell commands.
From https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28718#8
(WARNING: I remember a syntax error was somewhere in some ‘ip’ command):
--8<---------------cut here---------------start------------->8---
# ip link add bridge0 type bridge
# ip link set dev enp6s0 master bridge0
# ip link up bridge0
# dhclient bridge0
--8<---------------cut here---------------end--------------->8---
In /etc/qemu/bridge.conf (may not required for Libvirt):
--8<---------------cut here---------------start------------->8---
allow bridge0
--8<---------------cut here---------------end--------------->8---
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 11:14 ` static-networking-service Julien Lepiller
@ 2018-06-04 11:56 ` Ludovic Courtès
2018-12-16 18:07 ` static-networking-service George Clemmer
1 sibling, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2018-06-04 11:56 UTC (permalink / raw)
To: Julien Lepiller; +Cc: help-guix
Howdy,
Julien Lepiller <julien@lepiller.eu> skribis:
> static-networking-service is also limited to IPv4.
‘static-networking-shepherd-service’ has a number of hard-coded
“AF_INET”. I’m quite confident that if we make them a parameter in
<static-networking>, we can get IPv6 support.
Would you like to give it a try? :-)
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 7:44 static-networking-service Catonano
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
2018-05-31 16:40 ` static-networking-service Oleg Pykhalov
@ 2018-06-10 7:31 ` Chris Marusich
2 siblings, 0 replies; 10+ messages in thread
From: Chris Marusich @ 2018-06-10 7:31 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]
Catonano <catonano@gmail.com> writes:
> I think I could use some help about how to set up a networing device to be
> used as a "bridge" for the libvirt-manager bridged networking
What do you want to do? It's possible that depending on what you want
to do, you might not need to set up a bridge.
For example, it took me quite a while to figure out how to connect to my
VM from the host machine when using virt-manager. I thought I had to
forward ports, and I couldn't figure out how to do it. But it turned
out that the guest was available directly via a local IP address, and I
just didn't realize it.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
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
2018-12-16 19:01 ` static-networking-service Julien Lepiller
1 sibling, 1 reply; 10+ messages in thread
From: George Clemmer @ 2018-12-16 18:07 UTC (permalink / raw)
To: Julien Lepiller; +Cc: help-guix
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-05-31 10:00 ` static-networking-service Ricardo Wurmus
2018-05-31 11:14 ` static-networking-service Julien Lepiller
@ 2018-12-16 18:09 ` George Clemmer
2018-12-16 21:57 ` static-networking-service Ricardo Wurmus
1 sibling, 1 reply; 10+ messages in thread
From: George Clemmer @ 2018-12-16 18:09 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: help-guix
Ricardo Wurmus <rekado@elephly.net> writes:
> The static-networking-service currently does not support setting up
> bonding or bridges. It’s something I need for berlin.guixsd.org,
> actually, so I’d be very happy to see this implemented :)
Hi Ricardo,
Is this still an outstanding wish?
TIA - George
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-12-16 18:07 ` static-networking-service George Clemmer
@ 2018-12-16 19:01 ` Julien Lepiller
0 siblings, 0 replies; 10+ messages in thread
From: Julien Lepiller @ 2018-12-16 19:01 UTC (permalink / raw)
To: George Clemmer; +Cc: help-guix
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: static-networking-service
2018-12-16 18:09 ` static-networking-service George Clemmer
@ 2018-12-16 21:57 ` Ricardo Wurmus
0 siblings, 0 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2018-12-16 21:57 UTC (permalink / raw)
To: George Clemmer; +Cc: help-guix
Hi George,
> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> The static-networking-service currently does not support setting up
>> bonding or bridges. It’s something I need for berlin.guixsd.org,
>> actually, so I’d be very happy to see this implemented :)
>
> Hi Ricardo,
>
> Is this still an outstanding wish?
Yes, this hasn’t been implemented yet.
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-12-16 21:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` 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
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.