Bug 1318924

Summary: Unknown section 'DHCPServer'. Ignoring
Product: [Fedora] Fedora Reporter: Sampson Fung <sampsonfung>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: johannbg, jsynacek, lnykryn, msekleta, muadda, paroque28, s, systemd-maint, zbyszek
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-18 10:07:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sampson Fung 2016-03-18 07:35:54 UTC
Description of problem:
Adding a [DHCPServer] section to a interface network file.  journalctl gives "Unknown section 'DHCPServer'.  Ignoring"


Version-Release number of selected component (if applicable):
systemd version 222


How reproducible:
Every time.

Steps to Reproduce:
1.  Do a fresh install of Fedora 23 server using Network 
2.  Add DHCPServer=yes to [Network] section of .network file
3.  Add Address=192.168.1.1/24 to [DHCPServer] section of the same .network file

Actual results:
From journalctl -f, gives "systemd-networkd[751]  Unknown section 'DHCPServer'.  Ignoring."


Expected results:
Configuration parameters should be accepted and DHCPServer up and running


Additional info:

Comment 1 Jan Synacek 2016-03-18 08:15:16 UTC
The section is call 'DHCP', not 'DHCPServer'. Also, it doesn't have an "Address" option. Please, read systemd.network(5).

Comment 2 Sampson Fung 2016-03-18 08:39:32 UTC
Sorry, mistake in original report.

The whole content of my .network file is:

===
[Match]
Name=enp0s8

[Network]
Address=192.168.1.1/24
DHCPServer=yes

[DHCPServer]

===
Request to re-open.

Comment 3 Jan Synacek 2016-03-18 10:07:49 UTC
And again, [DHCPServer] is an invalid section, it should be [DHCP].

Comment 4 Pablo Rodriguez 2018-05-11 22:12:11 UTC
You probably have an earlier version of systemd
The [DHCPServer] section was introduced in 226 https://github.com/systemd/systemd/blob/master/NEWS#L2866