<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Thanks Marc.<br><br>Here is what my dhcpd.conf looks like:<br><br><hr style="width: 100%; height: 2px;"># DHCP Server Configuration file.<br>#<br>ddns-update-style interim;<br>ddns-updates off;<br><br># Subnet<br>subnet 0.0.0.0 netmask 0.0.0.0 {<br> option routers 10.10.1.1;<br> option subnet-mask 255.255.255.0;<br> option broadcast-address 10.10.1.255;<br> option
domain-name "test.com";<br> option domain-name-servers 10.10.1.10;<br> option ntp-servers 10.10.1.10;<br> option interface-mtu 1400;<br> range 10.10.1.100 10.10.1.200;<br> default-lease-time 5184000;<br>
max-lease-time 5184000;<br>}<br><hr style="width: 100%; height: 2px;"><br>now, dhcpd is running on port 67. the manual from nominum for dhcperf quotes the following:<br><br><hr style="width: 100%; height: 2px;">port<br> -p, --port port<br> Sets the UDP port upon which dhcperf sends and receives DHCP messages.<br> The default is 67—dhcperf emulates a DHCP relay agent and uses the <span style="font-weight: bold; color: rgb(255, 0, 127);">“DHCP server”</span><br> port.<br><hr style="width: 100%; height: 2px;"><br>1. from the above, it looks like dhcperf also runs on port 67. how can that be...? <br>2. if i have to run the dhcperf on the same machine as dhcpd, what port do i use for the client? <br>3. i tried dhcperf on port 68, but still, i get
the same response... more over, --progress option wont give any more debug than what there is already. so, i cannot provide any more logs than whats below...<br><br>sudo ./dhcperf --server 127.0.0.1 --one-discover --progress -p 68<br>Sending DHCPDISCOVER.<br>No response after 4 seconds: failed to acquire address.<br><br>4. is there any way to make dhcperf log more information?<br>
5. i am running the dhcperf on teh same machine as dhcpd just to see
how dhcperf works. the actual test is to run dhcperf on a different
subnet from that of dhcpd.<br><br>Thanks,<br>Rajitha.<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Marc Perea <marccp@srttel.com><br><b><span style="font-weight: bold;">To:</span></b> dhcp-users@lists.isc.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, August 12, 2010 7:48:29 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: dhcpserver and dhcperf on same machine - still not working<br></font><br>
<div>Hi Rajitha,</div>
<div> </div>
<div>It's a good step to install dhcperf on the same host as the dhcp daemon runs on - that indicates to me that your DHCP server doesn't want to give addresses to random clients perhaps? Our DHCP server only responds to known hosts, so when I want to run dhcperf I have to add another network, define a class of hosts to test with (so that they'd be known), and allow the class within the range for load testing (implicitly denying the rest of my known clients). The config looks something like this:</div>
<div> </div>
<div>class "loadtest" { match if (option agent.remote-id = 6d:61:72:63:63:70); }<br></div>
<div> subnet 10.170.0.0 netmask 255.255.0.0 { #LOAD TEST<br> authoritative;<br> option routers 10.170.0.1;<br> option subnet-mask 255.255.0.0;<br> option broadcast-address 10.170.255.255;<br> pool { authoritative; range 10.170.1.1 10.170.254.255; allow members of "loadtest";}<br> }<br><br>you could also make a host entry (by mac or other identifier) to match with instead of using a class, if that's easier.</div>
<div> </div>
<div>This is based on the assumption that your DHCP server is somewhat locked down to the clients that it supports - if that's not the case, what are you seeing in the logs when you attempt the dhcperf?</div>
<div> </div>
<div>dhcperf should work against any DHCP server - it simply pretends to be many dozens/hundreds/thousands of clients coming from a certain network segment - it just so happens that all that happens as emulation from a single host.</div>
<div> </div>
<div>HTH,</div>
<div> </div>
<div>--Marc</div><br>>And then, to account for the drawback in the following post in the groups, i <br>>installed dhcperf on the same machine that has the dhcp server. but still, it <br>>gives the same problem. That means, something else is wrong here. any help is <br>>appreciated.</div></div>
</div><br>
</body></html>