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

List:       nix-dev
Subject:    Re: [Nix-dev] When creating a bridge interface, the bridge doesn't appear
From:       Arnold Krille <arnold () arnoldarts ! de>
Date:       2016-06-15 6:11:45
Message-ID: CE7BA773-24BC-4AA1-8F1B-8B20C7CAE48C () arnoldarts ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@gmail.com>:
> 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
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> nix-dev mailing list
> nix-dev@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.


[Attachment #5 (text/html)]

<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="">did you define anything depending on the bridge? that is did you \
configure anything in networking.interfaces?<br> <br>
- Arnold<br><br><div class="gmail_quote">Am 15. Juni 2016 02:28:54 MESZ, \
schrieb Matthew Robbetts &lt;wingfeathera@gmail.com&gt;:<blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"> <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-ser!  if,
'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-sizin!  g:
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><p \
style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid \
#000"></p><pre class="k9mail"><hr /><br />nix-dev mailing list<br \
/>nix-dev@lists.science.uu.nl<br /><a \
href="http://lists.science.uu.nl/mailman/listinfo/nix-dev">http://lists.science.uu.nl/mailman/listinfo/nix-dev</a><br
 /></pre></blockquote></div><br>
-- <br>
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail \
gesendet.</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