LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2012, 02:10 PM   #1
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Rep: Reputation: 0
dhcp question


Do you need to configure /etc/network/interfaces when setting up a DHCP server?
 
Old 08-08-2012, 03:30 PM   #2
kenneth_phough
Member
 
Registered: Dec 2005
Location: Birmingham, AL
Distribution: CentOS, REHL, Vine Linux
Posts: 67

Rep: Reputation: 3
Not to my knowledge. You need to configure /etc/dhcpd.conf

Also if you have multiple interfaces, then you can specify which interface to provide the service in dhcpd.conf by adding
DHCPDARGS=eth0
this will provide dhcp service only on eth0.

HTH ken
 
Old 08-08-2012, 03:48 PM   #3
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
i did that but... I keep getting
Code:
Aug  8 15:45:58 SVRNGSCTRL dhcpd:
Aug  8 15:45:58 SVR dhcpd: No subnet declaration for eth1 (10.10.10.1).
Aug  8 15:45:58 SVR dhcpd: ** Ignoring requests on eth1.  If this is not what
Aug  8 15:45:58 SVR dhcpd:    you want, please write a subnet declaration
Aug  8 15:45:58 SVR dhcpd:    in your dhcpd.conf file for the network segment
Aug  8 15:45:58 SVR dhcpd:    to which interface eth1 is attached. **
Aug  8 15:45:58 SVR dhcpd:
Aug  8 15:45:58 SVR dhcpd:
Aug  8 15:45:58 SVR dhcpd: Not configured to listen on any interfaces!
 
Old 08-08-2012, 04:35 PM   #4
kenneth_phough
Member
 
Registered: Dec 2005
Location: Birmingham, AL
Distribution: CentOS, REHL, Vine Linux
Posts: 67

Rep: Reputation: 3
It looks like you didn't specify a subnet. What does your dhcpd.conf look like?

Here is mine as an example:

Quote:
ddns-update-style interim;
ignore client-updates;
DHCPDARGS=eth0;

subnet 192.168.2.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;

option nis-domain "egtech.us";
option domain-name "egtech.us";
option domain-name-servers 66.189.0.100,24.159.64.23,24.247.24.53,208.67.222.222,208.67.220.220;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.2.1;
# option netbios-name-servers 192.168.2.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.2.128 192.168.2.254;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
#host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
#}
}
 
Old 08-08-2012, 06:13 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
Good HOWTO with examples http://www.linuxtopia.org/online_boo...ml#config-file
 
Old 08-10-2012, 01:04 PM   #6
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
I figured it out, I had installed KestrelHPC before DHCP3-server. Apparently, this is a no no as KestrelHPC modifies the DHCP.conf and takes over DHCP duties.

Thanks for your help though! It's MUCH appreciated!
 
  


Reply


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
dhcp question dividingbyzero Linux - Networking 4 10-02-2008 09:30 PM
DHCP question wabob Slackware 2 05-02-2007 02:02 PM
DHCP Question depam Linux - Software 1 09-08-2006 11:46 PM
DHCP question leiw Linux - General 8 08-04-2006 08:26 PM
DHCP question slinkyredfoot Linux - Networking 4 09-08-2003 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration