Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-12-2009, 11:32 PM
|
#1
|
|
Member
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72
Rep:
|
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?
|
|
|
|
05-13-2009, 03:50 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
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?
|
|
|
|
05-21-2009, 05:08 AM
|
#3
|
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 798
Rep: 
|
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.
|
|
|
|
06-16-2009, 05:51 AM
|
#4
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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.
|
|
|
|
06-16-2009, 08:23 AM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
we do. you can attach files now, which is suitably equivalent functionality in most cases.
|
|
|
|
06-17-2009, 04:24 AM
|
#6
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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.
|
|
|
|
06-17-2009, 04:48 AM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
Yeah fair enough, I'd raise a thread in WS&F about that, or request the latter part of this thread be moved.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|