Hello Sophos Community,
I'm facing an issue where the DHCP server service fails to start after I've pushed my DHCP configuration through the API. Even when I navigate to the System Services in the Web GUI and press the start button, I encounter a peculiar situation. A green banner appears at the top indicating "Started Service," yet the service status remains on "Stopped."
Interestingly, the service resumes only after I perform any action within the Network -> DHCP section. For example, simply entering a configuration page and hitting save is enough to kickstart the service again. This implies that I need to make some sort of modification via the Web GUI for the service to successfully launch.
I'm puzzled as to why this is happening. Could it be that the API push is not properly initializing some required settings or there's a missing step that the Web GUI somehow completes?
For reference, my configuration XML (test.xml) is structured as follows:
<DHCPServer>
<Name>Test</Name>
<Status>1</Status>
<Interface>Port6</Interface>
<ConflictDetection>Disable</ConflictDetection>
<LeaseForRelay>Disable</LeaseForRelay>
<SubnetMask>255.255.255.0</SubnetMask>
<DomainName>munk.de</DomainName>
<DefaultLeaseTime>1440</DefaultLeaseTime>
<MaxLeaseTime>2880</MaxLeaseTime>
<UseApplianceDNSSettings>Disable</UseApplianceDNSSettings>
<StaticLease>
<Lease>
<HostName>test1</HostName>
<MACAddress>AA-AA-AA-AA-AA-AA</MACAddress>
<IPAddress>192.168.29.3</IPAddress>
</Lease>
<Lease>
<HostName>test2</HostName>
<MACAddress>AA-AA-AA-AA-AA-AA</MACAddress>
<IPAddress>192.168.29.2</IPAddress>
</Lease>
</StaticLease>
<PrimaryDNSServer>192.168.29.254</PrimaryDNSServer>
<SecondaryDNSServer/>
<PrimaryWINSServer/>
<SecondaryWINSServer/>
<Gateway>192.168.29.254</Gateway>
<UseInterfaceIPasGateway>UseInterfaceIPAsGateway</UseInterfaceIPasGateway>
<DHCPOption>
<Options>
<OptionName>NTP_Servers(42)</OptionName>
<OptionCode>42</OptionCode>
<OptionType>arr_ipaddr</OptionType>
<OptionValue>192.168.200.143</OptionValue>
</Options>
</DHCPOption>
</DHCPServer>
The push also says:
<DHCPServer transactionid="">
<Status code="200">Configuration applied successfully.</Status>
</DHCPServer>
I'd greatly appreciate any insights or suggestions on why this behavior is occurring and how to resolve it. It seems like there's a disconnect between the API configuration process and the service's ability to recognize and act upon these settings without manual intervention through the GUI.
Thank you in advance for your help and advice!
This thread was automatically locked due to age.