<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Strange dhcp client behaviour]]></title><description><![CDATA[<p dir="auto">Hi all!</p>
<p dir="auto">I've just installed an instance of pfsence in a simple configuration (one port wan, one port lan, dhcp client on wan and server on lan and nat between lan and wan).<br />
Everything that i expect works fine but one big problem.</p>
<p dir="auto">When booted I experience my dns server inaccessible from the pfsene instance.<br />
It is alike that when it gains DHCP it adds a line into routing table that breaks anything</p>
<pre><code>
192.168.39.1       ba:3e:e6:62:02:f5  UHS         0       52    em0

</code></pre>
<p dir="auto">192.168.39.1 is my inner DNS server and  ba:3e:e6:62:02:f5 seems to be exact MAC-address of em0 interface.<br />
The default gw for this segment is 192.168.52.1 and the subnetwork is 192.168.52.0/24.<br />
So far this pfsence instance cannot access my DNS and that is a pain.<br />
If i remove this strange route, everything works but the next dhclient run (and of course next reboot) everything breaks down.</p>
<p dir="auto">Why does this bogus line appear? How could i cure this? All other dhcp clients i tried work fine(linux and windows boxes without any specific configurations)</p>
<p dir="auto">PS : 2.0.3-RELEASE, up to date</p>
]]></description><link>https://forum.netgate.com/topic/60186/strange-dhcp-client-behaviour</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 14:12:30 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/60186.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Sep 2013 10:09:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 12:40:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wallabybob">@<bdi>wallabybob</bdi></a>:</p>
<blockquote>
<p dir="auto">Thats what I thought at first but a second look showed the routing table entry I queried within the pfSense <em>netstat -rn</em> output/</p>
<p dir="auto">I don't think I have ever seen such an entry on a pfSense system. I wonder if this is some weirdness related to use of DHCP relay. I wonder what dhclient reports in the logs. What sort of software runs in the DHCP relay?</p>
</blockquote>
<p dir="auto">A system.log fragment. I don't see anything bad. Is it a way to increase verbosity of dhcp client logs?</p>
<pre><code>
Sep 10 13:36:13 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:20 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:22 gw apinger: ALARM: WAN(192.168.52.1)  *** down ***
Sep 10 13:36:29 gw dhclient[33448]: DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 5
Sep 10 13:36:32 gw check_reload_status: Reloading filter
Sep 10 13:36:34 gw dhclient[33448]: DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 10
Sep 10 13:36:36 gw dhclient[33448]: DHCPOFFER from 192.168.52.1
Sep 10 13:36:36 gw dhclient: ARPSEND
Sep 10 13:36:38 gw dhclient: ARPCHECK
Sep 10 13:36:38 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:38 gw dhclient[33448]: DHCPACK from 192.168.52.1
Sep 10 13:36:38 gw dhclient: BOUND
Sep 10 13:36:38 gw dhclient: Deleting old routes
Sep 10 13:36:38 gw dhclient: Starting add_new_address()
Sep 10 13:36:38 gw dhclient: ifconfig em0 inet 192.168.52.233 netmask 255.255.255.0 broadcast 192.168.52.255
Sep 10 13:36:38 gw dhclient: New IP Address (em0): 192.168.52.233
Sep 10 13:36:38 gw dhclient: New Subnet Mask (em0): 255.255.255.0
Sep 10 13:36:38 gw dhclient: New Broadcast Address (em0): 192.168.52.255
Sep 10 13:36:38 gw dhclient: New Routers (em0): 192.168.52.1
Sep 10 13:36:38 gw dhclient: Adding new routes to interface: em0
Sep 10 13:36:38 gw dhclient: /sbin/route add default 192.168.52.1
Sep 10 13:36:38 gw dhclient: Creating resolv.conf
Sep 10 13:36:38 gw dhclient[33448]: bound to 192.168.52.233 -- renewal in 3600 seconds.
Sep 10 13:36:38 gw check_reload_status: rc.newwanip starting em0
Sep 10 13:36:42 gw php: : rc.newwanip: Informational is starting em0.
Sep 10 13:36:42 gw php: : rc.newwanip: on (IP address: 192.168.52.233) (interface: wan) (real interface: em0).
Sep 10 13:36:42 gw php: : ROUTING: setting default route to 192.168.52.1

</code></pre>
<p dir="auto">DHCP relay is D-link DGS-3420. It is running for several months in this configuration and no strange effects have been observed yet.<br />
Finaly i've tried to attach that instance directly into 192.168.39.0/24 segment (no relay between dhcp server and pfsense client) – the strange entry still exists but dns connections work (because of the same broadcast domain).<br />
I think it could be some kind of pfsense- or freebsd-specific script that adds this route for some reason but couldn't catch it yet(</p>
<blockquote>
<p dir="auto">Your diagram is somewhat helpful but suggests to me that 192.168.39.0/24 is on a different broadcast medium (distinct LAN segment) than 192.168.52.0/24</p>
</blockquote>
<p dir="auto">Yes, different vlans. And I've tried tcpdump on em0 – sure, different vlans and no cross-broadcast traffic between them</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doktornotor">@<bdi>doktornotor</bdi></a>:</p>
<blockquote>
<p dir="auto">Afraid it's not even LAN but something "in front" of WAN.</p>
</blockquote>
<p dir="auto">It's in front of WAN, yes. It's my internal DNS+DHCP server. And the instance of pfsense i'm having an issue whith is a gate into a kind of isolated subnetwork 192.168.210.0/24 (which contains a demo-stand that can be moved out of the office and displayed somewhere else)</p>
]]></description><link>https://forum.netgate.com/post/416727</link><guid isPermaLink="true">https://forum.netgate.com/post/416727</guid><dc:creator><![CDATA[ivanaxe]]></dc:creator><pubDate>Tue, 10 Sep 2013 12:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 11:36:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wallabybob">@<bdi>wallabybob</bdi></a>:</p>
<blockquote>
<p dir="auto">suggests to me that 192.168.39.0/24 is on a different broadcast medium (distinct LAN segment) than 192.168.52.0/24</p>
</blockquote>
<p dir="auto">Afraid it's not even LAN but something "in front" of WAN.</p>
]]></description><link>https://forum.netgate.com/post/416715</link><guid isPermaLink="true">https://forum.netgate.com/post/416715</guid><dc:creator><![CDATA[doktornotor]]></dc:creator><pubDate>Tue, 10 Sep 2013 11:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 11:31:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doktornotor">@<bdi>doktornotor</bdi></a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ivanaxe">@<bdi>ivanaxe</bdi></a>:</p>
<blockquote>
<p dir="auto">Just executing netstat -nr</p>
</blockquote>
<p dir="auto">That's not what's been requested, plus absolutely does <strong>not</strong> explain how 192.168.<strong>39</strong>.x/?? fits into the scheme…</p>
</blockquote>
<p dir="auto">Thats what I thought at first but a second look showed the routing table entry I queried within the pfSense <em>netstat -rn</em> output/</p>
<p dir="auto">I don't think I have ever seen such an entry on a pfSense system. I wonder if this is some weirdness related to use of DHCP relay. I wonder what dhclient reports in the logs. What sort of software runs in the DHCP relay?</p>
<p dir="auto">Your diagram is somewhat helpful but suggests to me that 192.168.39.0/24 is on a different broadcast medium (distinct LAN segment) than 192.168.52.0/24</p>
]]></description><link>https://forum.netgate.com/post/416712</link><guid isPermaLink="true">https://forum.netgate.com/post/416712</guid><dc:creator><![CDATA[wallabybob]]></dc:creator><pubDate>Tue, 10 Sep 2013 11:31:22 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 11:29:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wallabybob">@<bdi>wallabybob</bdi></a>:</p>
<blockquote>
<p dir="auto">This is not a routing table format I recognise. How did you get it? (what command and on what type of operating system?)</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doktornotor">@<bdi>doktornotor</bdi></a>:</p>
<blockquote>
<p dir="auto">That's not what's been requested, plus absolutely does <strong>not</strong> explain how 192.168.<strong>39</strong>.x/?? fits into the scheme…</p>
</blockquote>
<p dir="auto">That's exactly what has been requested (the way how i've got this).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doktornotor">@<bdi>doktornotor</bdi></a>:</p>
<blockquote>
<p dir="auto">192.168.39.x/<strong>??</strong> fits into the scheme…</p>
</blockquote>
<p dir="auto">FLAGS=H indicates that this entry is a host-entry and assumes that mask is /32.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doktornotor">@<bdi>doktornotor</bdi></a>:</p>
<blockquote>
<p dir="auto">how 192.168.<strong>39</strong>.x/?? fits into the scheme…</p>
</blockquote>
<p dir="auto">It is just a host and that is not strange that a routing table can contain an entry with an ip-address.<br />
It is awful surprising that dhcp client or another pfsense script adds this strange entry into routing table. All other clients i've tried don't do this.<br />
Yes, 192.168.39.1 is my dns server that is announced by my dhcp server. Yes it is inside another /24 segment. Yes, i've got more than one subnetwork, connected with a router (or L3-capable switch, no matter).<br />
And this pfsense instance is guided to be a part of roadwarrior's demo equipment and must be capable to work in wide class of cases.</p>
]]></description><link>https://forum.netgate.com/post/416711</link><guid isPermaLink="true">https://forum.netgate.com/post/416711</guid><dc:creator><![CDATA[ivanaxe]]></dc:creator><pubDate>Tue, 10 Sep 2013 11:29:49 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 11:01:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ivanaxe">@<bdi>ivanaxe</bdi></a>:</p>
<blockquote>
<p dir="auto">Just executing netstat -nr</p>
</blockquote>
<p dir="auto">That's not what's been requested, plus absolutely does <strong>not</strong> explain how 192.168.<strong>39</strong>.x/?? fits into the scheme…</p>
]]></description><link>https://forum.netgate.com/post/416701</link><guid isPermaLink="true">https://forum.netgate.com/post/416701</guid><dc:creator><![CDATA[doktornotor]]></dc:creator><pubDate>Tue, 10 Sep 2013 11:01:15 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 10:51:01 GMT]]></title><description><![CDATA[<p dir="auto">Just executing netstat -nr</p>
<pre><code>
[2.0.3-RELEASE][admin@gw.lugger.trafica.ru]/root(4): netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.52.1       UGS         0      627    em0
127.0.0.1          link#5             UH          0      164    lo0
192.168.39.1       ba:3e:e6:62:02:f5  UHS         0      431    em0
192.168.52.0/24    link#1             U           0     4170    em0
192.168.52.233     link#1             UHS         0        0    lo0
192.168.210.0/24   link#2             U           0      320    em1
192.168.210.1      link#2             UHS         0        0    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UH          lo0
fe80::%em0/64                     link#1                        U           em0
fe80::b83e:e6ff:fe62:2f5%em0      link#1                        UHS         lo0
fe80::%em1/64                     link#2                        U           em1
fe80::5870:a7ff:feac:6fe9%em1     link#2                        UHS         lo0
fe80::%lo0/64                     link#5                        U           lo0
fe80::1%lo0                       link#5                        UHS         lo0
ff01:1::/32                       fe80::b83e:e6ff:fe62:2f5%em0  U           em0
ff01:2::/32                       fe80::5870:a7ff:feac:6fe9%em1 U           em1
ff01:5::/32                       ::1                           U           lo0
ff02::%em0/32                     fe80::b83e:e6ff:fe62:2f5%em0  U           em0
ff02::%em1/32                     fe80::5870:a7ff:feac:6fe9%em1 U           em1
ff02::%lo0/32                     ::1                           U           lo0

</code></pre>
<pre><code>
[-em1(LAN)  pfsense box  em0(WAN)-] &lt;---&gt; [-(192.168.52.1)  dhcp relay  (192.168.39.2)] &lt;---&gt; [192.168.39.1 DNS+DHCP server]

</code></pre>
]]></description><link>https://forum.netgate.com/post/416699</link><guid isPermaLink="true">https://forum.netgate.com/post/416699</guid><dc:creator><![CDATA[ivanaxe]]></dc:creator><pubDate>Tue, 10 Sep 2013 10:51:01 GMT</pubDate></item><item><title><![CDATA[Reply to Strange dhcp client behaviour on Tue, 10 Sep 2013 10:42:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ivanaxe">@<bdi>ivanaxe</bdi></a>:</p>
<blockquote>
<p dir="auto">When booted I experience my dns server inaccessible from the pfsene instance.<br />
It is alike that when it gains DHCP it adds a line into routing table that breaks anything</p>
<pre><code>
192.168.39.1       ba:3e:e6:62:02:f5  UHS         0       52    em0

</code></pre>
</blockquote>
<p dir="auto">This is not a routing table format I recognise. How did you get it? (what command and on what type of operating system?)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ivanaxe">@<bdi>ivanaxe</bdi></a>:</p>
<blockquote>
<p dir="auto">192.168.39.1 is my inner DNS server and  ba:3e:e6:62:02:f5 seems to be exact MAC-address of em0 interface.<br />
The default gw for this segment is 192.168.52.1 and the subnetwork is 192.168.52.0/24.</p>
</blockquote>
<p dir="auto">I don't understand this. Do you mean 192.168.39.1 is on the same same LAN segment as the 192.168.52.0/24 network and that the default gateway for 192.168.39.1 is 192.168.52.1?</p>
<p dir="auto">Please provide a network diagram giving the IP address and subnet mask of all interfaces.</p>
]]></description><link>https://forum.netgate.com/post/416696</link><guid isPermaLink="true">https://forum.netgate.com/post/416696</guid><dc:creator><![CDATA[wallabybob]]></dc:creator><pubDate>Tue, 10 Sep 2013 10:42:35 GMT</pubDate></item></channel></rss>