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. |
|
 |
02-20-2010, 06:16 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2010
Posts: 2
Rep:
|
Debian DHCP on Shared Network
Hi,
New to Linux but done alot of research...have the following problem
Using debain 5.0.4 with webmin 1.500 and dhcp3.
i have two subnets (192.168.1.0 & 192.168.2.0)at home.
The debain dhcp server has 1 NIC using eth0 and eth0:1 (virtual).
I have configured the dhcpd.conf file using webmin, with a shared network, given the two subents are on the same physical network. each subnet has a pool of about 20 addresses.
Problem is that when a host boots up which is under the 192.168.2.0 subnet (using its MAC add - no fixed ip assignment), it gets the associated DNS and gateway ip addresses for this subnet, however, the ip address is assigned from the 192.168.1.0 address pool.
I have checked the net extensivly finding all sorts of discussions and solutions. My problem occurs in the same manner irrespective of whether i connect a host direct to the dhcp server or via a (netgear) switch!
Please can someone advise on what settings i might be missing, or do i need to set up DNS/DDNS and/or a firewall/router before this works properly?
thanks jat
|
|
|
|
02-20-2010, 06:40 PM
|
#2
|
|
Senior Member
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571
Rep:
|
I think because request to DHCP server came from interface eth0, which is assigned to 192.168.1.0 network.
|
|
|
|
02-20-2010, 11:48 PM
|
#3
|
|
LQ Newbie
Registered: Feb 2010
Posts: 2
Original Poster
Rep:
|
Thats what i understood as well, which is why i'm wondering other people must have a similar configuration. So how can ip requests for hosts tagged to the 192.168.2.0 subnet (as configured on the dhcp server using MAC) be recognised appropriately given i'm using the alias eth0:1 on the eth0 (subnet 192.168.1.0)? Is some kind of local port forwarding required or something (complete NooB!)
|
|
|
|
02-21-2010, 01:07 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
You can't. You should *NEVER* *EVER* use an alias with a different subnet. That's what vlans and "buying more nics" are for. when eth0:1 does a dhcp request, the request looks *EXACTLY* the same as from eth0, so no way to provide a different subnet. Additionally the server could not respond to it right even if it did look different, as it would only be listening on known valid local subnets without an additionall relay.
|
|
|
|
| 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 03:37 AM.
|
|
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
|
|