[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] When creating a bridge interface, the bridge doesn't appear
From:       Matthew Robbetts <wingfeathera () gmail ! com>
Date:       2016-06-15 0:28:54
Message-ID: 202CE920-3BB9-46B7-BACB-75D2ADD4CBB7 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi list,

(I filed an issue at GitHub (https://github.com/NixOS/nixpkgs/issues/16230 \
<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


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><p style="box-sizing: border-box; \
margin-top: 0px; margin-bottom: 16px; color: rgb(51, 51, 51); font-family: 'Helvetica \
Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', \
'Segoe UI Emoji', 'Segoe UI Symbol';" class="">Hi list,</p><div class="">(I filed an \
issue at GitHub (<a href="https://github.com/NixOS/nixpkgs/issues/16230" \
class="">https://github.com/NixOS/nixpkgs/issues/16230</a>), but realized that since \
it's probably a PEBKAC issue, the mailing list might be more suitable. Sorry for the \
cross-post!)</div><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: \
16px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', \
Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI \
Symbol';" class=""><br class=""></p><p style="box-sizing: border-box; margin-top: \
0px; margin-bottom: 16px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', \
Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI \
Emoji', 'Segoe UI Symbol';" class="">I am configuring a new nixOS system. My machine \
has two ethernet interfaces (<code style="box-sizing: border-box; font-family: \
Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0.2em 0px; margin: \
0px; background-color: rgba(0, 0, 0, 0.0392157); border-top-left-radius: 3px; \
border-top-right-radius: 3px; border-bottom-right-radius: 3px; \
border-bottom-left-radius: 3px;" class="">enp3s0</code>&nbsp;and&nbsp;<code \
style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, \
Courier, monospace; padding: 0.2em 0px; margin: 0px; background-color: rgba(0, 0, 0, \
0.0392157); border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" \
class="">enp4s0</code>) and one wireless interface (<code style="box-sizing: \
border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; \
padding: 0.2em 0px; margin: 0px; background-color: rgba(0, 0, 0, 0.0392157); \
border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" \
class="">wlp5s0</code>). I want to bridge the wireless with one of the ethernets, so \
in my configuration.nix I add:</p><pre style="box-sizing: border-box; font-family: \
Consolas, 'Liberation Mono', Menlo, Courier, monospace; margin-top: 0px; \
margin-bottom: 16px; line-height: 1.45; word-wrap: normal; padding: 16px; overflow: \
auto; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; \
border-top-right-radius: 3px; border-bottom-right-radius: 3px; \
border-bottom-left-radius: 3px; color: rgb(51, 51, 51);" class=""><code \
style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, \
Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; \
border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; \
border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: \
                normal;" class="">networking = {
    ...
    bridges.br0.interfaces = [ "enp4s0" "wlp5s0" ];
    ...
</code></pre><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; \
color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, \
freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';" \
class="">and run&nbsp;<code style="box-sizing: border-box; font-family: Consolas, \
'Liberation Mono', Menlo, Courier, monospace; padding: 0.2em 0px; margin: 0px; \
background-color: rgba(0, 0, 0, 0.0392157); border-top-left-radius: 3px; \
border-top-right-radius: 3px; border-bottom-right-radius: 3px; \
border-bottom-left-radius: 3px;" class="">nixos-rebuild switch</code>.</p><p \
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(51, \
51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, \
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';" class="">I \
observe in the output that, among other things, a<br style="box-sizing: border-box;" \
class=""><code style="box-sizing: border-box; font-family: Consolas, 'Liberation \
Mono', Menlo, Courier, monospace; padding: 0.2em 0px; margin: 0px; background-color: \
rgba(0, 0, 0, 0.0392157); border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" \
class="">/nix/store/z18i1q0r4i2bn0vkpcz45d10nn0628nf-unit-br0-netdev.service/br0-netdev.service</code><br \
style="box-sizing: border-box;" class="">is created. However,&nbsp;<code \
style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, \
Courier, monospace; padding: 0.2em 0px; margin: 0px; background-color: rgba(0, 0, 0, \
0.0392157); border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" \
class="">ifconfig</code>&nbsp;does not show the new bridge interface.</p><p \
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(51, \
51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, \
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';" class="">If I \
manually run:<br style="box-sizing: border-box;" class=""><code style="box-sizing: \
border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; \
padding: 0.2em 0px; margin: 0px; background-color: rgba(0, 0, 0, 0.0392157); \
border-top-left-radius: 3px; border-top-right-radius: 3px; \
border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" class="">systemctl \
start br0-netdev.service</code></p><p style="box-sizing: border-box; margin-top: 0px; \
margin-bottom: 16px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', \
Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI \
Emoji', 'Segoe UI Symbol';" class="">the bridge interface appears.</p><p \
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(51, \
51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, \
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';" \
class="">Probably I am doing something wrong, but I would have expected the bridge to \
appear immediately as a result of&nbsp;<code style="box-sizing: border-box; \
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0.2em \
0px; margin: 0px; background-color: rgba(0, 0, 0, 0.0392157); border-top-left-radius: \
3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; \
border-bottom-left-radius: 3px;" class="">nixos-rebuild switch</code>.</p><div \
class="">Anyone have an opinion?</div><div class=""><br class=""></div><div \
class=""><br class=""></div><div class="">Thanks,</div><div \
class="">Matt</div></body></html>



_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic