Error at dhcpd.conf

Kernels & Hardware, configuring network, installing services

Error at dhcpd.conf

Postby iF4yt » 2017-04-15 15:06


I want to configure my Raspberrypi as DNS / DHCP Server. DNS works fine, but I have some problems with the DHCP configuration.
The problem is:
Code: Select all
root@raspberrypi:/etc/dhcp# dhcpd -t -cf dhcpd.conf
Internet Systems Consortium DHCP Server 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit
Config file: dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/
WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
dhcpd.conf line 33: expecting numeric value.
      hardware ethernet?

Configuration file errors encountered -- exiting

The regarding config Part:
Code: Select all
host raspi {
                hardware ethernet  b8:27:eb:69:25:cc;
                option host-name   "raspi";

System Information:
Code: Select all
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux

I'm editing via SSH from my MacBook at default Terminal. Are there maybe some Codepage problems? Or is something else wrong?

Thanks in advance
Posts: 1
Joined: 2017-04-15 14:58

Re: Error at dhcpd.conf

Postby levlaz » 2017-04-28 00:45

This looks ok to me, I am wondering if maybe there is a tab or extra space character issue going on here.

Could you make it
Code: Select all
hardware ethernet b8:27:eb:69:25:cc;
and see if that makes a difference at all?

User avatar
Posts: 179
Joined: 2012-09-27 12:06
Location: San Francisco, CA

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests