LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-12-2009, 11:32 PM   #1
wimnat
Member
 
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72

Rep: Reputation: 16
Question Trying to get two subnets working in dhcpd.conf


Hey,

I thought this would be simple but I can't get it to work.

I have a bunch of computers on a 10.152.0.0/24 network.

I want to put some SIP phones on 10.152.1.0/24.

My dhcpd.conf file looks like this...

http://pastebin.com/m5d223aaa

My phones keep taking a guest IP instead of from the .1 subnet.

What am I doing wrong?
 
Old 05-13-2009, 03:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
the only way a client is going to get an ip from the wrong subnet is if they are on that wrong subnet physically. How are your subnets seperated? you'd need separate switches / full 802.1q tagging, not interface aliasing etc... Is that what's happening? You've not explained what you really mean by a "guest ip". that is the other subnet, right?
 
Old 05-21-2009, 05:08 AM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
A DCHP request is a broadcast and has the source ip address set as 0.0.0.0. The DHCP server with multiple scopes needs to be able to figure out which scope to assign from. In the case of a server with two separate broadcast domain connections, i.e separate physical nics or as mentioned a tagged interface, these broadcasts are received separately by the interface that already has an address of the network concerned. i.e. If server eth0 has and IP of 1.1.1.1 255.255.255.0 and it receives a DHCP request, it can "fill in the blanks" by assuming a source address of 1.1.1.x and assign an address from that pool.

If you have two IPs bound to the same interface, then both subnets share the same broadcast domain. When the DHCP request is received, it is received by a broadcast domain that both subnets are sharing. The server has no way of identifying or even infering which DHCP pool the request should be associated with. So typically it just picks the first one configured.
 
Old 06-16-2009, 05:51 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
wimnat,
http://pastebin.com/m5d223aaa is broken: "Unknown post id, it may have expired or been deleted" -- please repost somewhere permanent. LQ is supposed to a archive of answers & this thread makes less sense w/o the orig. dhcpd.conf that was referenced.

Q: Should LQ have its own pastebin?
Members only, tied to a forum, blog, or other post; & as permanent as the items that reference it.
 
Old 06-16-2009, 08:23 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
we do. you can attach files now, which is suitably equivalent functionality in most cases.
 
Old 06-17-2009, 04:24 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Isn't there a limit on the # of files each of us can attach? I just clicked the "Manage Attachments" button, & greeted w/:
"Sum of all attachments owned by archtoad6: 575.9 KB"
above a slightly ominous red & green bar that seems to indicate that I am a little over half my quota.

Just now I revisited my User Control Panel & noticed the Attachments link under Miscellaneous. This opens w/
"You are currently using 575.9 KB to store 5 uploaded attachments."
above the same red/green bar which I believe represents 575.9 KB used out of a 1,000 or 1,024 KB quota. With a quota I can't keep adding things indefinitely -- I'll eventually have to delete something(s). That is not permanent, & does not solve the need for an LQ pastebin for long code blocks, like config files & scripts.

As we both know, one of the goals of LQ is to be a permanent archive of knowledge, so if we want to unclutter threads by moving long code blocks elsewhere, the elsewhere has to be as permanent as the referencing post.
 
Old 06-17-2009, 04:48 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Yeah fair enough, I'd raise a thread in WS&F about that, or request the latter part of this thread be moved.
 
  


Reply

Tags
dhcp, subnet


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 to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
Setting up DHCPd on firewall to serve 3 internal subnets ocgltd Linux - Networking 3 08-08-2008 12:26 PM
DHCPD and Assigning Subnets to Different Interfaces metallica1973 Linux - Networking 8 01-25-2008 05:22 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
DHCPD two subnets on the same network taggedd Linux - Networking 4 10-27-2003 11:29 AM


All times are GMT -5. The time now is 02:22 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