all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* static-networking-service-type: Using a static network bridge
@ 2023-03-22  0:32 Denis 'GNUtoo' Carikli
  2023-03-22  6:24 ` Julien Lepiller
  0 siblings, 1 reply; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-03-22  0:32 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

Hi,

Is it possible to do something like that in a system configuration?:
> ip link add lan0 type bridge
> ip link set dev eth0 master lan0
> ip addr add 192.168.1.5/24 dev lan0
> ip route add default via 192.168.1.1 dev lan0

I've tried it with something like that (with the IP addresses and "eth0"
changed):
> (service static-networking-service-type
>   (list
>     (static-networking
>       (addresses (list (network-address
>                                         (device "lan0")
>                                         (value "192.168.1.5/24"))))
>        (links (list (network-link (name "lan0")
>                                (type 'bridge)
>                                (arguments '()))
>                                (network-link
>                                (name "eth0")
>                                (type #f)
>                                (arguments '("master" "lan0")))))
>     (name-servers '("192.168.10.1"))
>     (routes (list (network-route (destination "default")
>                                  (gateway "192.168.1.1")))))))
but the issue is that the bridge isn't even created.

Did I do something wrong, or is that configuration not supported?

Denis.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-29 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22  0:32 static-networking-service-type: Using a static network bridge Denis 'GNUtoo' Carikli
2023-03-22  6:24 ` Julien Lepiller
2023-03-23 23:08   ` Denis 'GNUtoo' Carikli
2023-03-24 17:14     ` Julien Lepiller
2023-03-27 17:37       ` Denis 'GNUtoo' Carikli
2023-03-29 18:27         ` Julien Lepiller

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.