I am attempting to write a script up that will issue lots and lots of DHCP requests to test and see if the new DHCP server can handle the load, as well as prove once and for all that an 386 with a 10BaseT card should not be the primary DHCP server.
But I am running into snags left and right....
I managed to find Net::DHCPClient and it looks to be perfect for what I intend, but I am still having lots more difficulty than I feel that I should be...
My first attempt has been:
I have got Ethereal out there sniffing and when I run this nothing happens... Not even a complaint from perl telling me my syntax is totally wrong...use strict; use Net::DHCPClient; my $mac_address = `ifconfig |grep HW |cut -d: -f2-7|cut -dr -f3 |cut - +d' ' -f2`; # get the MAC address my $dhcp = new Net::DHCPClient ( maccaddr => $mac_address, interface => 'eth0', ); $dhcp->discover(61 => $mac_address); $dhcp->request; $dhcp->release;
What have I done wrong?
Can anyone recomend a better way to initate this test?
My understanding of DHCP is limited, is this test even possible or does the link between MAC address and IP address cause a problem with requesting 20 addresses a second?
In reply to Load testing a DHCP server by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |