[Nix-dev] When creating a bridge interface, the bridge doesn't appear
zimbatm
zimbatm at zimbatm.com
Wed Jun 15 11:03:58 CEST 2016
Can you paste the content of the service?
Can you paste the list of units that nixos restarts after applying the
config?
According to
https://github.com/NixOS/nixpkgs/blob/928035378d82de9641adc60e188c3b9313667729/nixos/modules/tasks/network-interfaces-scripted.nix#L184
it should be started to satisfy network.target.
Or maybe you have `useNetworkd` enabled and then it's using another
mechanism.
The behavior might change if you enabled `useNetworkd` or not.
On Wed, 15 Jun 2016 at 07:12 Arnold Krille <arnold at arnoldarts.de> wrote:
> did you define anything depending on the bridge? that is did you configure
> anything in networking.interfaces?
>
> - Arnold
>
> Am 15. Juni 2016 02:28:54 MESZ, schrieb Matthew Robbetts <
> wingfeathera at gmail.com>:
>
>> Hi list,
>> (I filed an issue at GitHub (
>> https://github.com/NixOS/nixpkgs/issues/16230), but realized that since
>> it’s probably a PEBKAC issue, the mailing list might be more suitable.
>> Sorry for the cross-post!)
>>
>>
>> I am configuring a new nixOS system. My machine has two ethernet
>> interfaces (enp3s0 and enp4s0) and one wireless interface (wlp5s0). I
>> want to bridge the wireless with one of the ethernets, so in my
>> configuration.nix I add:
>>
>> networking = {
>> ...
>> bridges.br0.interfaces = [ "enp4s0" "wlp5s0" ];
>> ...
>>
>> and run nixos-rebuild switch.
>>
>> I observe in the output that, among other things, a
>>
>> /nix/store/z18i1q0r4i2bn0vkpcz45d10nn0628nf-unit-br0-netdev.service/br0-netdev.service
>> is created. However, ifconfig does not show the new bridge interface.
>>
>> If I manually run:
>> systemctl start br0-netdev.service
>>
>> the bridge interface appears.
>>
>> Probably I am doing something wrong, but I would have expected the bridge
>> to appear immediately as a result of nixos-rebuild switch.
>> Anyone have an opinion?
>>
>>
>> Thanks,
>> Matt
>>
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160615/1e002083/attachment.html>
More information about the nix-dev
mailing list