<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 9, 2015 at 6:41 PM, Eldon Kuzhyelil <span dir="ltr"><<a href="mailto:eldon.mec@gmail.com" target="_blank">eldon.mec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif">and my interface file looks like this now</span><br></div><pre><span style="font-family:arial,helvetica,sans-serif"><br></span>auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.0.10(my ip address when connected through ethernet)
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off<br><br></pre><p>
Now bring up the bridge:
</p>
<div><pre><span>sudo ifup br0<br><br><br><br></span></pre><pre><span><font face="arial,helvetica,sans-serif">But after rebooting i am still not able to connect to internet using ethernet or wifi.</font></span><span><br><font face="arial,helvetica,sans-serif"></font></span></pre></div></div></blockquote><div><br></div><div>First thing's first: do NOT even bother with bridging if you still use wifi to access the internet. If you HAVE to use wifi, use NAT instead (there's an example in the first link)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><pre><span><font face="arial,helvetica,sans-serif">What to do?<br><br></font></span></pre></div></div></blockquote><div><br></div><div>Do some basic trobleshooting:</div><div>- is the HOST able to connect to the internet?</div><div>- what does these commands show on the host:</div><div><br></div><div>brctl show</div><div>ip ad li</div><div>ip route</div><div>ethtool eth0</div><div>ping -n -c 1 192.168.0.1<br></div><div><div>ping -n -c 1 8.8.8.8<br></div></div><div><div>ping -n -c 1 <a href="http://google.com">google.com</a><br></div></div><div>cat /etc/resolv.conf</div><div><br></div><div>My GUESS is you're missing something simple, like:</div><div>- the cable is unplugged</div><div>- you're trying to setup bridging with eth0 while you're connected using wifi</div><div>- your interface name is not eth0, but something else</div><div>- you previously use DHCP, and now since you use static address your resolv.conf is empty since you haven't set it up</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>