LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 10-19-2009, 03:02 AM   #1
globemast
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 15

Rep: Reputation: 0
Dhcp3 configuration for XEN server


Hi all,

I am running an Ubuntu 9.04 Server (32-bit) and i have installed the XEN kernel in order to run a XEN Virtual Appliance (VA).

I want to setup a DHCP server in order to serve the VAs. The host machine is part of a server farm and uses a static IP address.

So far i have created a virtual interface (eth0:1) so as not to mess with the hardware (eth0) interface and cause any problems in the cluster.

However I'm struggling in getting the DHCP server running. I'm attaching below the dhcpd.conf , dhcp3-server files and syslog.

Any help would be highly appreciated...

Thanks.

Code:
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#

# Required for dhcp 3.0+ / Red Hat 8.0+
ddns-update-style interim;                                   
ignore client-updates;

default-lease-time 259200;
max-lease-time 518400;

subnet 192.168.1.0 netmask 255.255.255.0 {
	option subnet-mask 255.255.255.0;
	option broadcast-address 192.168.1.255;
	option routers	192.168.1.1;
	option domain-name "rubisva.cy";
	range 192.168.1.50 192.168.1.100;
	option domain-name-servers 194.42.16.11;
	#option domain-name-servers 192.168.1.1;
}

Code:
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#

# Required for dhcp 3.0+ / Red Hat 8.0+
ddns-update-style interim;                                   
ignore client-updates;

default-lease-time 259200;
max-lease-time 518400;

subnet 192.168.1.0 netmask 255.255.255.0 {
	option subnet-mask 255.255.255.0;
	option broadcast-address 192.168.1.255;
	option routers	192.168.1.1;
	option domain-name "rubisva.cy";
	range 192.168.1.50 192.168.1.100;
	option domain-name-servers 194.42.16.11;
	#option domain-name-servers 192.168.1.1;
}
Code:
Oct 16 16:50:56 vm101 dhcpd: No subnet declaration for eth0:1 (0.0.0.0).
Oct 16 16:50:56 vm101 dhcpd: ** Ignoring requests on eth0:1.  If this is not what
Oct 16 16:50:56 vm101 dhcpd:    you want, please write a subnet declaration
Oct 16 16:50:56 vm101 dhcpd:    in your dhcpd.conf file for the network segment
Oct 16 16:50:56 vm101 dhcpd:    to which interface eth0:1 is attached. **
P.S I have already posted this question on the Ubuntu forums with little feedback. Here is the link to the post:
http://ubuntuforums.org/showthread.php?t=1292804
 
Old 10-20-2009, 03:58 AM   #2
globemast
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Any suggestions?
 
Old 10-20-2009, 09:25 AM   #3
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Question

What network settings have you given eth0:1 ?
output of ifconfig would be useful.
 
Old 10-21-2009, 03:46 AM   #4
globemast
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 15

Original Poster
Rep: Reputation: 0
eth0:1 Link encap:Ethernet HWaddr 00:30:48:27:44:4e
inet addr:192.168.1.123 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 
Old 10-21-2009, 06:55 AM   #5
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Is eth0 on a different subnet ?
ie
eth0 192.168.4.1
eth0:1 192.168.1.123

If it is you might need to use the shared-network directive

from the man pages.
Code:
  The shared-network statement is used to inform  the  DHCP  server  that
       some  IP subnets actually share the same physical network.  Any subnets
       in a shared network should be declared within a  shared-network  state-
       ment.   Parameters  specified  in  the shared-network statement will be
       used when booting clients on those subnets unless  parameters  provided
       at  the  subnet or host level override them.  If any subnet in a shared
       network has addresses available for dynamic allocation, those addresses
       are  collected  into a common pool for that shared network and assigned
       to clients as needed.  There is no way to distinguish on  which  subnet
       of a shared network a client should boot.
But thats only a guess, not a DHCP expert unfortunately.
 
Old 10-21-2009, 07:02 AM   #6
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Just found this

According to Redhat you can't have a DHCP server on an alias interface.

http://www.redhat.com/docs/en-US/Red...CP_Server.html
 
Old 10-22-2009, 02:57 AM   #7
globemast
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Yes eth0:1 is on a different subnet than eth0.

But your last post confused things even more.
 
  


Reply

Tags
dhcp3, xen


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is wrong in my configuration in squid + dhcp3 + iptables + wpad.dat bideshp Linux - Networking 3 09-06-2009 06:42 PM
permission denied error when restart dhcp3-server landysaccount Linux - Newbie 6 04-03-2009 07:16 AM
debian etch dhcp3 server problem after upgrade rotezecke Linux - Newbie 14 12-16-2008 09:47 PM
DHCP3-SERVER on Debian making some noise!! dutche Linux - Networking 0 08-11-2006 03:42 PM
dhcp3 server config geden Debian 1 03-17-2006 09:31 PM


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