LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 05-13-2009, 12:32 AM   #1
wimnat
Member
 
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 67
Thanked: 1
Question Trying to get two subnets working in dhcpd.conf


[Log in to get rid of this advertisement]
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?
wimnat is offline  
Tag This Post ,
Reply With Quote
Old 05-13-2009, 04:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,327
Thanked: 182
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?
acid_kewpie is offline     Reply With Quote
Old 05-21-2009, 06:08 AM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 602
Thanked: 3
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.
baldy3105 is offline     Reply With Quote
Old 06-16-2009, 06:51 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
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.
archtoad6 is offline     Reply With Quote
Old 06-16-2009, 09:23 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,327
Thanked: 182
we do. you can attach files now, which is suitably equivalent functionality in most cases.
acid_kewpie is offline     Reply With Quote
Old 06-17-2009, 05:24 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
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.
archtoad6 is offline     Reply With Quote
Old 06-17-2009, 05:48 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,327
Thanked: 182
Yeah fair enough, I'd raise a thread in WS&F about that, or request the latter part of this thread be moved.
acid_kewpie is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 09:55 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration