LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-20-2010, 07:16 PM   #1
jatkidal
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Post 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
 
Old 02-20-2010, 07:40 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
I think because request to DHCP server came from interface eth0, which is assigned to 192.168.1.0 network.
 
Old 02-21-2010, 12:48 AM   #3
jatkidal
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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!)
 
Old 02-21-2010, 02:07 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
  


Reply

Tags
break, free, windows


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
Setting up a DHCP server with multiple network interfaces - Debian Srz0rz Linux - Networking 5 06-09-2011 12:33 AM
Linux DHCP client unsuccessful on a windows DHCP served network tom1080 Linux - Newbie 1 12-16-2009 12:37 PM
Debian, dhcp, and 2+ network interfaces chrisrees Linux - Newbie 3 02-15-2008 04:39 AM
Linux setup as router / DHCP w/3+ NICs, separate but shared connectivity - question MetaTechi3 Linux - Networking 3 11-17-2006 12:41 PM
Network Installing Debian: DHCP isn't working. SonicGT Linux - Networking 3 06-25-2005 01:27 PM


All times are GMT -5. The time now is 05:31 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration