<div>stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0</div><div>SIOCSIFADDR: No such device</div><div>lxcbr0: ERROR while getting interface flags: No such device</div><div>SIOCSIFNETMASK: No such device</div><div>lxcbr0: ERROR while getting interface flags: No such device</div>
<div>Failed to bring up lxcbr0.</div><div><br></div><br><div class="gmail_quote">On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@canonical.com">serge.hallyn@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">Quoting matthew byers (<a href="mailto:faintstlsaint@gmail.com">faintstlsaint@gmail.com</a>):<br>
> Hey i am trying to run lxc on my laptop but am having problem setting up<br>
> bridge. My internet connection consist of a WAN that i have absolutely no<br>
> control over. I connect my tablet to the network and then tether it to my<br>
> laptop. I followed directions from this site:<br>
> <a href="http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/" target="_blank">http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/</a> up<br>
> until the point of running: ifup br0 #in which i get the Ignoring Uknown<br>
> Interface.....as shown below<br>
><br>
> stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces<br>
> auto lo<br>
> iface lo inet loopback<br>
><br>
> auto lxcbr0<br>
> iface lxcbr0 inet static<br>
> address 192.168.42.8<br>
> netmask 255.255.255.0<br>
> post-up /opt/bin/lxcbr0-up<br>
><br>
><br>
> stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up<br>
> #!/bin/sh<br>
> # This is the address we assigned to our bridge in /etc/network/interfaces<br>
> braddr=192.168.42.8<br>
> # ip address range for containers<br>
> brrange=192.168.42.9,192.168.42.230<br>
> iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j ACCEPT<br>
> iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT<br>
> iptables -A POSTROUTING -t nat -j MASQUERADE<br>
> dnsmasq --bind-interfaces --conf-file= --listen-address --except-interface<br>
> lo --dhcp-range --dhcp-lease-max=253 --dhcp-no-override<br>
><br>
><br>
> stlsaint@stlsaint-devcore:~$ sudo ifup br0<br>
> Ignoring unknown interface br0=br0.<br>
<br>
</div></div>D'oh!<br>
<br>
Halfway through writing the post I changed br0 to lxcbr0. Apparently not completely.<br>
What happens if you do:<br>
<br>
sudo ifup lxcbr0<br>
<br>
?<br>
</blockquote></div><br><br clear="all"><br>-- <br>God Bless<br>