Coder Social home page Coder Social logo

PXE booting WinPE fails about staticdhcpd HOT 10 CLOSED

flan avatar flan commented on August 26, 2024
PXE booting WinPE fails

from staticdhcpd.

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Can you provide a packet-dump (decoded preferred) using Wireshark (capture with 
filter "udp.port==67 or udp.port==68" -> stop -> print single packet to file as 
decoded ASCII) or tcpdump (tcpdump -i eth0 -s 1024 -vvv udp port 67 or port 68) 
showing both servers' responses?

I'm suspecting that ISC's server is sending a different siaddr value, but need 
to see the packets to substantiate (and help you address) that suspicion. We 
might find out something else of interest, too.

Original comment by red.hamsterx on 29 Jan 2011 at 8:54

  • Changed state: Accepted

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
some update on this.
Had some finding:
1)DHCP_FIELDS (siaddr and file) are not set through staticdhcpd. But the ISC's 
server set those values.
2)It was not correct to set file with just 
setOptions('file',strToList('pxelinux.0'))
because it expects a list of 128 bytes.

After setting the two values, I still can't boot. But this time, got a 
different error message: PXE-E32 TFTP open timeout

Seems it can now find the tftp server, but still can't connect.

Original comment by [email protected] on 3 Feb 2011 at 8:08

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
another update
I am so happy ...
It works now, I can see the tftp downloading winpe booting files.
It turned out I missed one digit in the conf.py when specifying tftpservier id

Original comment by [email protected] on 3 Feb 2011 at 10:23

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Neil,

- Per this issue, I added a new method strToPaddedList(string,dhcp_field_length)
to src/libpydhcpserver/type_rfc.py.
- Also added a webservice connection method to lookup the IP.
- In dhcp_packet.py, added exception handling to:
   self._options_data[DHCP_OPTIONS_REVERSE[opt_id]] = opt_val 
  as I saw some incoming packets triggered unhandled exception here

For details please see the patch file.

Original comment by [email protected] on 7 Feb 2011 at 10:20

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
-

Original comment by [email protected] on 7 Feb 2011 at 10:20

Attachments:

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Hi, Andrew. Sorry I haven't been responding: I was without Internet access from 
home as part of a protest against Canada's Usage-Based Billing thing and work 
was crazy-busy.

I'll incorporate your patch (thank you very much for taking the time to submit 
it and for adhering to the project's coding conventions!), minus the parts that 
modify loadDHCPPacket(), since they're obviously specific to your site's 
implementation.

Can you explain what the Webserves data-source is? It's the first time I've 
heard of such a thing and I'd like to know how to document it for other users.

Original comment by red.hamsterx on 14 Feb 2011 at 11:51

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Thanks for getting back to me.
The webservice source is Oracle database. I am doing this because I don't want 
to expose the database connection information and deal with tnsnames lookup etc.
So it is basically a https call to pass in 'action,mac,format' and get lookup 
result returned in the format specifed. So all the data retrieving logic is on 
the webservice host side. 

I am not quite sure about the performance yet. It would be slower than a direct 
database lookup.

Original comment by [email protected] on 15 Feb 2011 at 10:09

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
I've finally added everything from your patch to the dev branch, Andrew, except 
for the webservice thing, since that seems like it's pretty local to your site, 
and I'm *really* sorry it took so long. I could come up with a myriad of 
excuses, but they wouldn't be sufficient.

If you'd like, though, I can grant you committer access, since it seems like 
you know what you're doing, and while I expect to be more available during the 
summer, I can't guarantee anything.

Original comment by red.hamsterx on 23 Jun 2011 at 12:21

  • Changed state: Fixed

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Thanks for fixing the issue. And glad you finally get some free time.
Sure, I will be happy to get a committer access.

Andrew

Original comment by [email protected] on 24 Jun 2011 at 2:19

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
If you can e-mail me (red.hamsterx {at[ gmail or flan ]at} uguu.ca) the address 
of the Google Account you'd like to use to contribute to this project, I'll get 
that set up immediately, and then I'll send you a roadmap of what I have 
planned for the next little while. I'll also explain anything you might be 
unfamiliar with, small-team-source-control-system-wise.

In case I get swamped again, I'd like to know that the project will be under 
the control of someone who can prevent necessary bugfixes from sitting in limbo 
for months.

Original comment by red.hamsterx on 24 Jun 2011 at 5:16

from staticdhcpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.