LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-05-2013, 09:43 PM   #1
newfielinux
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
DHCP Static IP, dns and gateway per client


Hi,
Looking forward to your feedback.

I have set up a community wifi network with approximately 100 homes connected to access points on a tower.

What we would like to do is connect several DSL internet gateways to our WIFI network. We would like to route traffic from users smartphone, tablet, laptop connected to the WIFI network through their own gateway at home. Without sharing it with other people.
The only thing I can think of to accomplish this is to use dhcp.conf and statically assign an IP address, dns and gateway to a mobile device via is mac address; but I am not sure how the config will look like in dhcp.conf.

So please feel free to send me examples of what you think is the best way to accomplish this task.

Thank you..
 
Old 07-06-2013, 02:32 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by newfielinux View Post
Hi,
Looking forward to your feedback.

I have set up a community wifi network with approximately 100 homes connected to access points on a tower.

What we would like to do is connect several DSL internet gateways to our WIFI network. We would like to route traffic from users smartphone, tablet, laptop connected to the WIFI network through their own gateway at home. Without sharing it with other people.
The only thing I can think of to accomplish this is to use dhcp.conf and statically assign an IP address, dns and gateway to a mobile device via is mac address; but I am not sure how the config will look like in dhcp.conf.

So please feel free to send me examples of what you think is the best way to accomplish this task.
Sorry, but the only feedback I can think of is "why bother?"

If you've got 100 homes connected to multiple access points on a 'tower' of some sort, why would you then route those same people back to the connection they already have at their homes??? Why not just let the users connect to their own access points as they are now. That is private, not shared with anyone, etc.
 
Old 07-06-2013, 09:39 PM   #3
newfielinux
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Sorry, but the only feedback I can think of is "why bother?"

If you've got 100 homes connected to multiple access points on a 'tower' of some sort, why would you then route those same people back to the connection they already have at their homes??? Why not just let the users connect to their own access points as they are now. That is private, not shared with anyone, etc.
Hi TB0ne,
Thank you for your feedback.

At present we only use the WIFI network for local VOIP service with an app installed on a device.i.e. smartphone, tablet, laptop.

I do not provide any users on the WIFI network with an internet service. So it would be nice if we could connect to our own internet connection at home while roaming on the WIFI network.

I sure i can probably do this with some linux dhcp.conf file but not sure which distribution to use.

Thanks again.
 
Old 07-07-2013, 03:32 AM   #4
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,020

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Hi there,

Quote:
Originally Posted by newfielinux View Post
At present we only use the WIFI network for local VOIP service with an app installed on a device.i.e. smartphone, tablet, laptop.

I do not provide any users on the WIFI network with an internet service. So it would be nice if we could connect to our own internet connection at home while roaming on the WIFI network.
so let me try to sum it up as I understood the scenario.
There's a group of people in the area who a) each have their own DSL internet hookup at home, either with wired connection or with their own WiFi AP, and b) use a semi-public WiFi network connecting to a central AP "on a tower", as you say.

Quote:
Originally Posted by newfielinux View Post
I sure i can probably do this with some linux dhcp.conf file but not sure which distribution to use.
I don't think so. The major problem I see is that many devices (smartphones, tablets, notebooks) would have to connect and log in to two wireless networks at the same time (their private one and the shared one). I've never heard of a WiFi driver yet that would support this. Though ... with a sophisticated network setup maybe ... creating an alias of the WiFi adapter ... then it would be a matter of routing, rather than DHCP. However, I don't know if standard WiFi adapters can establish connections to two different APs at the same time. You'll probably need two separate WiFi adapters on each device, which would be most unusual.

[X] Doc CPU
 
Old 07-07-2013, 09:16 AM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by newfielinux View Post
Hi TB0ne,
Thank you for your feedback.

At present we only use the WIFI network for local VOIP service with an app installed on a device.i.e. smartphone, tablet, laptop. I do not provide any users on the WIFI network with an internet service. So it would be nice if we could connect to our own internet connection at home while roaming on the WIFI network.
Would have been good to provide these details up front.

And you *MIGHT* be able to do this, providing ALL Internet access went through one point, by specifying different network routes, so that just traffic to your VOIP server went through gateway xxxx, while everything else went to yyyy, but doing a lot of people like that would be amazingly time-consuming. You'd have to identify each MAC address (and keep them up to date when devices change), manually enter routes/addresses for them in the dhcp config, etc. If you had a few people, fine...but 100 or more?
Quote:
I sure i can probably do this with some linux dhcp.conf file but not sure which distribution to use.
The distribution doesn't matter, since they all run DHCP the same way. And if you're sure you can do it, why ask how? We'd love to know...post your configuration after you get it working.
 
Old 07-08-2013, 02:00 PM   #6
newfielinux
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your feedback.

I won't get to test this network setup until later this month when I am at this month when I travel to the location.
If it works I will reply with an update including the configurations and network diagrams.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up Slackware 9.1 to use DHCP with a static DNS? h00chman Linux - Newbie 2 12-18-2012 09:30 AM
dhcp w/ static dns blackzero Linux - Networking 6 10-30-2009 07:20 PM
dhcp client .. not setting gateway and dns server scabrous1 Linux - Networking 1 05-09-2006 10:31 AM
DHCP static ip and NAMED (DNS) question Yaniv-Fer Linux - Networking 4 03-29-2006 06:55 AM
DHCP, Gateway and DNS server depam Linux - Networking 3 10-05-2005 07:33 PM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration