Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-27-2010, 06:12 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Rep:
|
sharing internet connection, using my desktop as a wifi hotspot
hello. this is my first time posting in a forum, sorry if i'm being stiff. i'll try to post as much information as necessary and make clear my objective. also, as to my level of intellect with respect to linux, i hopefully see myself as leaving the newbie stage.
i have two computers:
- one is my desktop, running ubuntu. it has two NIC's one is wired (eth0), the other is wireless (wlan0).
- the other is my laptop, running archlinux. two NIC's as well (eth & wlan).
i would like to connect my desktop to my router via eth0 and connect my laptop to my desktop via wlan0, providing internet access to my laptop. i would like both computers to be able to use the internet simultaneously (not all packets would be forwarded).
any manner of doing this would be ok, but if this is a simple enough task to do it by simply configuring some files (e.g. /etc files) rather than installing some unnecessarily big application, then that would be wonderful!
also, not really as high a priority but if possible, i would like this to perhaps not be limited to my laptop. connecting any device (a psp or pda for example) to the internet this way (making it a hotspot in a sense) would be super! encrypting the connection (WEP for instance) would be ultra-mega!
miscellaneous info:
my desktop uses dhcp to connect to the router, if that helps.
thank you very much in advance and "merry christmas"/"happy holidays"!
p.s. just realized i haven't asked a question... how would i do this?
|
|
|
|
12-27-2010, 06:15 PM
|
#2
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Original Poster
Rep:
|
p.s.s.
i don't know a lot about networking protocols or their implementation on linux, so please correct me if i'm wrong, but from what i know i think that to do this i would have to use dhcp to allocate an extra private ip-address (192.168.0.0/16) for every device attempting to connect to the desktop's wlan0. then, the desktop would have to forward the packets it receives with that new allocated ip-address from eth0 to wlan0. i don't know if dhcp can allocate more than one address to a given NIC though. would this be the best solution? how would i do this on linux?
|
|
|
|
12-28-2010, 04:59 AM
|
#3
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
This is possible, because, just for fun, I did it once.
I have now forgotten the exact details, but here is the link I used to set it up:
http://lindesk.com/2007/04/internet-...sing-iptables/
In that link he is using forwarding over a wired link, but it'll work just as well over wireless.
You need to use google.com/ linux to search on internet sharing
Another link, referencing wireless:
http://www.facebook.com/notes/ubuntu...s/356751763898
Welcome to LQ!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:55 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|