LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2013, 05:46 PM   #1
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Two DHCP Subnets


I've got a scenario where I need administrators to be able to browse a large number of lower privilege users.

If my understanding of the whole thing is correct, I am planning two DHCP scopes each listening on separate ethernet interfaces. The following config should work such that Pool_0 can communicate with Pool_1.

Pool_0 (not many users here)
DHCP Range 172.16.0.10 - 172.16.0.50
Netmask: 255.255.252.0
Network: 172.16.0.0/22
Broadcast: 172.16.3.255
HostMin: 172.16.0.1
HostMax: 172.16.3.254

Pool_1 (MANY users here)
DHCP Range: 172.16.2.1 - 172.16.3.254
Netmask: 255.255.254.0
Network: 172.16.2.0/23
Broadcast: 172.16.3.255
HostMin: 172.16.2.1
HostMax: 172.16.3.254

The 300+ users in Pool_1 will(?) not be able to reach Pool_0. I intend to limit the range of addresses given out by each DHCP server so there are no conflicts.

Will this work as I've described?

Last edited by mpapet; 08-02-2013 at 05:58 PM.
 
Old 08-02-2013, 09:17 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
The main problem with your approach is that you have overlapping subnets. This is not a valid configuration.

What happens when a host in the upper half of the 172.16.0.0/22 subnet tries to contact a host in the 172.16.2.0/23 subnet? It will assume that the host exists on the local segment, and if that's not the case, it will be unable to reach it.

The only way that could possibly sort-of work, is if:
  1. the two subnets were sharing the same ethernet segment, and
  2. the router is willing to forward packets out the same interface that they came in on (most firewall products will not allow this)
However, (1) will not work in this case, as you're using DHCP. DHCP is a broadcast-based protocol, and both interfaces will receive the broadcast packets simultaneously.

In short, it cannot be done. Use separate, non-overlapping subnets and separate (V)LANs.
 
1 members found this post helpful.
Old 08-03-2013, 12:16 AM   #3
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by Ser Olmy View Post
In short, it cannot be done. Use separate, non-overlapping subnets and separate (V)LANs.
Thanks for the feedback. I knew I'd have two VLANs but I didn't think it through.

The revised plan is one VLAN with the hosts that WERE in Pool_0 statically assigned as described. Meanwhile the devices that are assigned an address via DHCP will get an address as described in Pool_1
 
  


Reply

Tags
dhcp


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
dhcp leases on different subnets tech_soul8 Linux - Networking 9 03-25-2012 07:47 AM
[SOLVED] DHCP: Two subnets and some machines on both benjalien Linux - Networking 4 08-21-2009 04:15 AM
DHCP subnets klnasveschuk Linux - Networking 2 11-18-2007 12:04 AM
DHCP for 2 subnets omlex Linux - Networking 11 03-04-2007 07:41 PM
DHCP Server for several subnets Simon_Sez Linux - Software 5 12-30-2005 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration