LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-4175535053/)

sweetlux 02-25-2015 07:22 AM

help me
 
how can i share LAN internet from my LINUX PC to android phone through wi-fi

beachboy2 02-25-2015 07:37 AM

There is plenty of information available on this, so why not try using Google first, make an attempt at solving the problem yourself and then ask LQ if you get stuck?

smallpond 02-25-2015 07:38 AM

Attach a router and turn on forwarding.

paladin.michael 02-25-2015 07:51 AM

If you're using Ubuntu, see here: http://ubuntuhandbook.org/index.php/...d-ubuntu-1404/

If not you could turn the wireless card into an ad-hoc device assuming it supports access point mode. If your PC usually uses a wired connection you could then bridge the two connections and connect to the ad-hoc with your phone to have internet access via the PC.

I've never done this personally, my knowledge in this is wholely theoretical but I found this here which defines turning on ad-hoc mode: http://hxr99.blogspot.com/2011/10/ho...-in-linux.html

How to bridge the connections depends on your distribution and the tools you have availalbe. Most of what I'm finding in quick google searches are for using the brctl command. For example, if you're using a Debian based distro there's a bridge-utils package that contains it in the repositories, instructions here: https://packages.debian.org/search?k...s=bridge-utils

(btw, this probably goes without saying, but just in case: if the pc is hooked into the LAN using wireless... just connect the cell phone to the same wireless access point the pc is using.)

Shadow_7 02-25-2015 10:36 AM

I've had trouble with ethernet to wireless bridging since 2.6.32 kernels. Sometime between 2.6.32 and 2.6.34 it broke (for me anyway, with flakey broadcom wifi chipsets). It seems to have been changed to provide bridging primarily for virtualized and container environments. You can accomplish much of the same function through iptables and ebtables without the brctl / bridge-utils methodology. I tend to use stand alone routers for this these days, as they're cheap, less hassle, and have more current wifi standards than my legacy gear.


All times are GMT -5. The time now is 07:26 AM.