Sharing Internet in Linux


Hi Folks! Today, I installed Ubuntu 18.04 LTS on my personal laptop. But I could not connect to the Internet as Ubuntu does not recognize my wireless driver. After couple of googling I have found my wireless driver .model:Broadcom Limited BCM43142 802.11b/g/n But the problem is how I am going to hook-up to the Internet  to install my driver? I realized that, I have my company’s laptop which is Lenovo T460 which is one of the best free-DOS laptop. :) I booted it up with Ubuntu Live CD. Finally I made the configuration in the Figure -1.  


Figure - 1 Sample Configuration For Sharing Internet.

After above configuration. Everything is worked excellent – I am able to hook-up to the Internet on my Asus laptop via Lenovo laptop. To be honest, before above configuration I tried to bridge Ethernet interface with Wireless Interface on the Lenovo laptop. But It is not permitted. After some research I have found this. It’s no longer possible to add an interface in the managed mode to a bridge. You should run hostapd first to pure the interface to the master mode. Bridging doesn’t work on the station side anyway because the 802.11 header has three addresses (except when WDS is used) omitting the address that would be needed for a station to send or receive a packet on behalf of another system.


Necessary package to be installed for Broadcam Wireless driver.

tesla@otuken:~$ sudo apt-get update
tesla@otuken:~$ sudo apt-get install bcmwl-kernel-source

After Installed the package and  rebooted my laptop. It WORKED LIKE A CHARM!