Bug 1318924 - Unknown section 'DHCPServer'. Ignoring
Summary: Unknown section 'DHCPServer'. Ignoring
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-18 07:35 UTC by Sampson Fung
Modified: 2018-05-11 22:12 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-18 10:07:49 UTC
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.