Feature #7416

Dhclient does not support supersede statement for option 54

Added by Fabian Kurtz over 1 year ago. Updated over 1 year ago.

Needs Patch
DHCP Server
Target version:
Start date:
Due date:
% Done:


Estimated time:
2.00 h


The German cable internet provider Unitymedia uses DHCP relays which only answer to broadcasts. Dhclient renews WAN leases by sending unicasts to the relay, which doesn't forward them to the DHCP server. If, in the rebind phase, the broadcast packet is lost, the WAN IP expires, all connections are dropped and Dhclient needs to aquire a new lease. This is discussed in [[]].

The problem can be avoided by setting DHCP option 54 (dhcp-server-identifier) to via Interfaces->WAN->Advanced configuration->Option Modifiers. However, the required supersede statement for this option is not implemented in dhclient.c. Thus the DHCP client of Pfsense does not use the option and the value given by the DHCP server remains in effect (which points to the IP of the relay), which then results in the observed problem.

To solve this a section which checks if "supersede dhcp-server-identifier" is set has been added to dhclient.c (see "Start of the updated section" at line 855 in the attached file).

dhclient.c Magnifier (75.2 KB) Fabian Kurtz, 03/21/2017 08:53 AM


#1 Updated by Jim Pingle over 1 year ago

  • Status changed from New to Needs Patch
  • Priority changed from High to Low
  • Target version changed from 2.3.4 to Future

Changes to FreeBSD should first be submitted upstream to FreeBSD.

Also available in: Atom PDF