LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-20-2016, 04:53 PM   #1
tmel173
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Rep: Reputation: 0
dhcpd on ubuntu


I set up a isc-dhcp-server host as documented.

The host already performs some DNS hosting already but I wanted to add the dhcpd role to the server but I am receiving an error message that tells me that my eth0 has "No subnet declaration for eth0" I am not sure what that means and my research shows I need to put in a subnet for the interface that the host is on which seems like I did. is there anyone with knowledge on this issue or give me an example ?
 
Old 07-20-2016, 06:55 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by tmel173 View Post
my research shows I need to put in a subnet for the interface that the host is on which seems like I did.
Code:
sudo ifconfig
will show if you succeeded.

Also, you have to assign a static ip to the interface that you will use for dhcp. If you will use eth0 for providing addresses in the 192.168.1.x subnet then you should assign for instance ip 192.168.1.1 to the eth0 interface using NetworkManager. Without this step you will get an error from dhcpd when starting the service says this.

Maybe it means something to someone, I don't know the answer, but I know where to look.

If you still need additional help, I suggest the output of ifconfig
 
Old 07-21-2016, 11:05 AM   #3
tmel173
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
My issue is that the host I am using currently has an ip address in a different subnet from the subnet I would like to assign addresses to.

server running dhcp = 172.16.3.10/24.
ip address pool is 10.89.68.1/24

how do I configure the dhcp server to use 172.61.3.10 and not the subnet for the pool addreses 10.89.x.x ? so dhcp would be listening on interface eth0 with 172.16.3.10 but assigning form the pool 10.89.68.x
 
Old 07-21-2016, 03:04 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I personally don't know. Sorry.

Someone else does 'tho', hang in here!
 
  


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
Many entries in /var/lib/dhcpd/dhcpd.leases Mouglou Linux - Server 10 06-14-2011 09:56 AM
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:58 AM.

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