help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static-networking-service-type: Using a static network bridge


From: Julien Lepiller
Subject: Re: static-networking-service-type: Using a static network bridge
Date: Wed, 22 Mar 2023 07:24:01 +0100
User-agent: K-9 Mail for Android

You specified type twice, with #f the last time. Maybe that's tge issue?

Le 22 mars 2023 01:32:48 GMT+01:00, Denis 'GNUtoo' Carikli 
<GNUtoo@cyberdimension.org> a écrit :
>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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]