how to change isc-dhcp3-server replies? (was:

Joe josepha48 at yahoo.com
Sat Sep 1 18:13:52 PDT 2007


isc-dhcp3-server issues with windows 2000 client) 
To: freebsd-questions at freebsd.org
In-Reply-To: <20070902000628.BD4AC16A4D5 at hub.freebsd.org>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1649509927-1188695601=:80192"
Content-Transfer-Encoding: 8bit
Message-ID: <513147.80192.qm at web34607.mail.mud.yahoo.com>

--0-1649509927-1188695601=:80192
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Ok, no so true.  I am watching tcpdump output from the two binaries. The old binary sends its reply to 255.255.255.255, while the new one sends its reply to 192.168.0.15.  Same config file and I tried the always-broadcast flag, and it only sets the bit for the client, but the server still broadcasts its reply to the client on the subnet mask.  

Old client reply (ml.. is server af is client):  

1188694380.961642 ml:ml:ml:ml:ml:ml > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl  16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.0.15.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length: 300, xid:0x77915dc3, flags: [Broadcast] (0x8000)
          Your IP: 192.168.0.13
          Client Ethernet Address: af:af:af:af:af:af [|bootp]

new client does not do this and clients do not get their ip address. I read somewhere that linux had a problem doing this in 2.2 kernels and it has something to do with the routing table in linux.  Not sure what is going on here, but the routing table looks fine.  

Joe

freebsd-questions-request at freebsd.org wrote:









> > It seems that the dhcpd server is replying to the subnet and not the
> > broadcast net.  So the reply that should be sent to 255.255.255.255:68 is
> > sent to 192.168.0.255:68.  Then, because the client has no IP address or
> > has defaulted it to a 169.x.x.x(MS defaults) it does not seem to be
> > getting the reply and thus never gets an address assigned.
>
It is for DHCPDISCOVER, since there is no subnet yet:
# dhclient -d fxp0
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 4

As for the option you're looking for, man dhcpd.conf showed me this:
         always-broadcast flag;








       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
--0-1649509927-1188695601=:80192
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Ok, no so true.&nbsp; I am watching tcpdump output from the two binaries. The old binary sends its reply to 255.255.255.255, while the new one sends its reply to 192.168.0.15.&nbsp; Same config file and I tried the always-broadcast flag, and it only sets the bit for the client, but the server still broadcasts its reply to the client on the subnet mask.&nbsp; <br><br>Old client reply (ml.. is server af is client):&nbsp; <br><br>1188694380.961642 ml:ml:ml:ml:ml:ml &gt; ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl&nbsp; 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.0.15.67 &gt; 255.255.255.255.68: BOOTP/DHCP, Reply, length: 300, xid:0x77915dc3, flags: [Broadcast] (0x8000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Your IP: 192.168.0.13<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Client Ethernet Address: af:af:af:af:af:af [|bootp]<br><br>new client does not do this and clients do not get their ip
 address. I read somewhere that linux had a problem doing this in 2.2 kernels and it has something to do with the routing table in linux.&nbsp; Not sure what is going on here, but the routing table looks fine.&nbsp; <br><br>Joe<br><br><b><i>freebsd-questions-request at freebsd.org</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left:
 5px;"><b.movaqar at gmail.com><tfcheng at gmail.com><freebsd-questions at freebsd.org><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><danger at FreeBSD.org><gpeel at thenetnow.com><tfcheng at gmail.com><fbsd.questions at rachie.is-a-geek.net><f84c38580709010517l3e0759c9ue0d03c1b57da8d9b at mail.gmail.com><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><outbackdingo at gmail.com><listreader at lazlarlyricon.com><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><listreader at lazlarlyricon.com><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><pauls at utdallas.edu><EFC892EF4A4C0B8558045427 at paul-schmehls-powerbook59.local><gpeel at thenetnow.com><xyin at bluebottle.com><redchin at gmail.com><freebsd-questions at freebsd.org><xyin at bluebottle.com><fbsd.questions at rachie.is-a-geek.net><peo at intersonic.se><kris at FreeBSD.
org><kris at FreeBSD.org><peo at intersonic.se><listreader at lazlarlyricon.com><fbsd.questions at rachie.is-a-geek.net><youshi10 at u.washington.edu><Mike.Gerdes at philotech.de><xyin at bluebottle.com><fbsd.questions at rachie.is-a-geek.net><tfcheng at gmail.com><fbsd.questions at rachie.is-a-geek.net><f84c38580709010943s10045fd4v6923cd450a1f0c1b at mail.gmail.com><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><fbsd.questions at rachie.is-a-geek.net><peo at intersonic.se><kris at FreeBSD.org><kris at FreeBSD.org><peo at intersonic.se><josepha48 at yahoo.com><freebsd-questions at freebsd.org><xrayv19 at yahoo.com><dnelson at allantgroup.com><dnelson at allantgroup.com><jrisom at gmail.com><tobi at casino.uni-stuttgart.de><nvass at teledomenet.gr><lists-fbsd at shadypond.com><fbsd.questions at rachie.is-a-geek.net><stapleton.41 at gmail.com><fbsd.questions at rachie.is-a-geek.net><peter at boosten.org><josepha48 at yahoo.com><freebsd-questions at freebsd.org><fbsd.questions at rachie.is-a-geek.net>&gt; &gt; It seems that the dhcpd server is
 replying to the subnet and not the<br>&gt; &gt; broadcast net.  So the reply that should be sent to 255.255.255.255:68 is<br>&gt; &gt; sent to 192.168.0.255:68.  Then, because the client has no IP address or<br>&gt; &gt; has defaulted it to a 169.x.x.x(MS defaults) it does not seem to be<br>&gt; &gt; getting the reply and thus never gets an address assigned.<br>&gt;<br>It is for DHCPDISCOVER, since there is no subnet yet:<br># dhclient -d fxp0<br>DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 4<br><br>As for the option you're looking for, man dhcpd.conf showed me this:<br>         always-broadcast
 flag;<br></fbsd.questions at rachie.is-a-geek.net></freebsd-questions at freebsd.org></josepha48 at yahoo.com></peter at boosten.org></fbsd.questions at rachie.is-a-geek.net></stapleton.41 at gmail.com></fbsd.questions at rachie.is-a-geek.net></lists-fbsd at shadypond.com></nvass at teledomenet.gr></tobi at casino.uni-stuttgart.de></jrisom at gmail.com></dnelson at allantgroup.com></dnelson at allantgroup.com></xrayv19 at yahoo.com></freebsd-questions at freebsd.org></josepha48 at yahoo.com></peo at intersonic.se></kris at FreeBSD.org></kris at FreeBSD.org></peo at intersonic.se></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></f84c38580709010943s10045fd4v6923cd450a1f0c1b at mail.gmail.com></fbsd.questions at rachie.is-a-geek.net></tfcheng at gmail.com></fbsd.questions at rachie.is-a-geek.net></xyin at bluebottle.com></Mike.Gerdes at philotech.de></youshi10 at u.washington.edu></fbsd.questions at rachie.is-a-geek.net></listreader at lazlarlyricon.com></peo at intersonic.se></kris at FreeBSD.org></kr
is at FreeBSD.org></peo at intersonic.se></fbsd.questions at rachie.is-a-geek.net></xyin at bluebottle.com></freebsd-questions at freebsd.org></redchin at gmail.com></xyin at bluebottle.com></gpeel at thenetnow.com></EFC892EF4A4C0B8558045427 at paul-schmehls-powerbook59.local></pauls at utdallas.edu></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></listreader at lazlarlyricon.com></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></listreader at lazlarlyricon.com></outbackdingo at gmail.com></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></f84c38580709010517l3e0759c9ue0d03c1b57da8d9b at mail.gmail.com></fbsd.questions at rachie.is-a-geek.net></tfcheng at gmail.com></gpeel at thenetnow.com></danger at FreeBSD.org></fbsd.questions at rachie.is-a-geek.net></fbsd.questions at rachie.is-a-geek.net></freebsd-questions at freebsd.org></tfcheng at gmail.c
om></b.movaqar at gmail.com></blockquote><br><p>&#32;
      <hr size=1>Moody friends. Drama queens. Your life? Nope! - their life, your story.<br> <a href="http://us.rd.yahoo.com/evt=48224/*http://sims.yahoo.com/">Play Sims Stories at Yahoo! Games. </a>
--0-1649509927-1188695601=:80192--


More information about the freebsd-questions mailing list