LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2008, 12:42 PM   #1
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
DHCPD and IP Ranges -- Wireless vs. Wired


Good morning LQ!

I have just set up a small DHCP server on my local area network, and I was attempting to give different IP addresses out depending on the type of connection -- wired clients would get IPs from one pool, wireless from another. Not being able to find either the answer or the right search terms to find suggestions, I turn to you.

Since wireless traffic must pass through the wireless router on my network, is there a way for me to map any traffic passing through device X (known mac address) into a different pool than devices hardwired to my switch? I'd rather not filter every potential wireless card manufacturer's mac address prefix, as many of the manufacturers also make wired cards.

The reason behind this is that I will be using iptables to filter a lot of traffic from wireless devices who have received DHCP addresses, where as my known hosts sit safely on a different range.

-- Christopher
 
Old 09-01-2008, 07:30 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If I am understanding this correctly, the server is hardwired to a consumer-type router/AP, which is allowing both wired and wireless devices to connect to the network?

So then, all DHCP requests would be received on a single Ethernet interface on the server?
 
Old 09-01-2008, 08:32 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Currently the wireless AP connects to a switch, into which the server is plugged. In other words, yes, all requests will be coming through the same interface.
 
Old 09-01-2008, 09:24 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well, I am no expert on DHCPD, but from my understanding that is going to be a problem. If you had requests coming from two interfaces you could give them separate scopes; but with everything coming from one interface it seems like you would have to fall back on MAC filters which are certainly not ideal, as you said.

Would it be possible in your current setup to physically connect the AP to a second network card in the server?
 
Old 09-01-2008, 11:25 PM   #5
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Unfortunately by the constraints of the server I cannot fit any more network cards into the box, and this isn't so crucial as to necessitate another NIC being installed. I didn't know if I could shape traffic, for lack of a better phrase, based on the router through which it first entered.

I admit I haven't taken a look at deep packet inspection to see how the routers add information to the packets, if at all.

Last edited by Poetics; 09-01-2008 at 11:27 PM.
 
Old 09-02-2008, 01:46 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You could get a USB ethernet adaptor and attach the WAP directly to that.
 
Old 09-02-2008, 03:46 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Thanks, but the current network configuration is that it would be easier to leave the AP plugged into the switch. If it can't be done I'll just have to go the manufacturer route.
 
  


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
netgear ma311 wireless card will not talk to actiontec wired/wireless router tzonga1 Linux - Wireless Networking 2 02-10-2007 05:52 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
Dhcpd two IP ranges via two nics rvjaarsveld Linux - Networking 10 10-14-2004 08:29 AM
Wired to Wireless back to Wired The_Nerd Linux - Hardware 5 09-15-2004 09:20 PM
Blocking IP Address ranges in dhcpd.conf pmcdaid Linux - Networking 4 06-09-2004 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:52 PM.

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
Open Source Consulting | Domain Registration