in reply to Revised Dhcpclient Module

I've been trying to analyse your module for awhile now; however, I've encountered some problems. The biggest problem, at least on my system, is that Net::Pcap won't compile on my shared perls, 5.8.8, 5.9.5, and 5.10.0. I have two static perls, ActivePerl-5.8 and ActivePerl-5.10, and Net::Pcap compiled ok on them.

I ran your module using diagnostics. It didn't spit out any error messages. How about some code to see if it works?

Lastly, I'd recommend the Perl and Net::Pcap tutorial by rob_au to get some more ideas.

update: I checked the bugs on rt. The module's author suggested trying Net::Pcap 0.14. I tried it on my shared perls, and it installed on all three. Now, my problem is with dhcpd. I'm on FC6 and it should start by running /sbin/service dhcpd start, but it doesn't. I'm redoing all the config files now.

Replies are listed 'Best First'.
Re^2: Revised Dhcpclient Module
by drip (Beadle) on Jun 04, 2008 at 10:57 UTC
    you need to have a dhcp server ready.. here's a sample code..
    my $p=Net::DHCP::Packet::Client->new(Server =>'192.168.1.1', State => 'Request', Interface => 'eth0', Requestip => '192.168.1.3') $p->printpacket(); $p->packetsend();
    please do not forget to change the interface to correspond to your interface card..

    update: please do tell me the results once you get it up and running..=)