Missing lines in examples/dhcpd.conf

Bug #26661 reported by John C. McCabe-Dansted
4
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Fix Released
Low
Martin Pitt

Bug Description

I found that I had to get set the subnet-mask and broadcast-address for dhcp3-server
to function. However example line setting these options were not included in the
example configuration file:

/usr/share/doc/dhcp3-server/examples/dhcpd.conf

Perhaps the following three lines should be added to this example file:

#Details of the interface you intended dhcpd to listen on...
option subnet-mask 255.255.255.0;
option broadcast-address 10.152.187.255;

Related branches

Revision history for this message
Martin Pitt (pitti) wrote :

Strange, the subnet mask should be automatically figured out from the 'subnet' stanza, like

subnet 172.16.0.0 netmask 255.255.255.0 {
  range 172.16.0.2 172.16.0.200;
}

However, I'm fine with adding the example lines, they can't hurt.

Changed in dhcp3:
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed locally, will upload after flight-7 freeze.

Changed in dhcp3:
status: In Progress → Fix Committed
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

 dhcp3 (3.0.3-6ubuntu7) dapper; urgency=low
 .
   * debian/patches/deroot-client.dpatch: Fixed major thinko in lease file
     handling: dhclient was unable to update the leases file after it
     daemonized, which meant that 'sudo dhclient ethX' worked fine, but
     obtained leases at boot time were never written if the first attempt timed
     out. Now make sure that the lease file is always writable by forked
     instances, too. Closes: LP#39249 (and should also mitigate #33968).
   * Add debian/patches/dhcpd.conf-subnet-examples.dpatch: Add 'option
     subnet-mask' to example dhcpd.conf. Closes: LP#26661

Changed in dhcp3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.