LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2015, 07:22 AM   #1
sweetlux
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
help me


how can i share LAN internet from my LINUX PC to android phone through wi-fi
 
Old 02-25-2015, 07:37 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, antiX-16.1, MX-16
Posts: 2,145
Blog Entries: 9

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
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?
 
Old 02-25-2015, 07:38 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,798

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
Attach a router and turn on forwarding.
 
Old 02-25-2015, 07:51 AM   #4
paladin.michael
Member
 
Registered: Jun 2011
Location: Danbury, CT, USA
Distribution: Kubuntu, Slackware, Debian, FreePBX
Posts: 72

Rep: Reputation: 22
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.)
 
Old 02-25-2015, 10:36 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,168
Blog Entries: 1

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration