Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Error at dhcpd.conf

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
iF4yt
Posts: 1
Joined: 2017-04-15 14:58

Error at dhcpd.conf

#1 Post by iF4yt »

Heyho.

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 https://www.isc.org/software/dhcp/
Config file: dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
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;
                fixed-address      192.168.2.82;
                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

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

Re: Error at dhcpd.conf

#2 Post by levlaz »

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?
Best,

Lev
Blog

Post Reply