I will try that out when i get back home. I had to go to work.<br><br>
<div class="gmail_quote">On Fri, Jun 3, 2011 at 7:59 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@canonical.com">serge.hallyn@canonical.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Weird.<br><br>You have bridge-utils installed? Does<br><br> brctl addbr lxcbr0<br> ifconfig lxcbr0 192.168.42.8 netmask 255.255.255.0<br>
/opt/bin/lxcbr0-up<br><br>work?<br>
<div>
<div></div>
<div class="h5"><br>Quoting matthew byers (<a href="mailto:faintstlsaint@gmail.com">faintstlsaint@gmail.com</a>):<br>> stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0<br>> SIOCSIFADDR: No such device<br>> lxcbr0: ERROR while getting interface flags: No such device<br>
> SIOCSIFNETMASK: No such device<br>> lxcbr0: ERROR while getting interface flags: No such device<br>> Failed to bring up lxcbr0.<br>><br>><br>> On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn <<a href="mailto:serge.hallyn@canonical.com">serge.hallyn@canonical.com</a>>wrote:<br>
><br>> > 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>> > ><br>> > <a href="http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up" target="_blank">http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up</a><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<br>
> > /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<br>
> > --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>> > D'oh!<br>> ><br>> > Halfway through writing the post I changed br0 to lxcbr0. Apparently not<br>> > completely.<br>> > What happens if you do:<br>> ><br>> > sudo ifup lxcbr0<br>
> ><br>> > ?<br>> ><br>><br>><br>><br>> --<br>> God Bless<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>God Bless<br>