Re: Static ip patch problems
Marty Connor <[email protected]> Thu, 9 Mar 2006 07:26:38 -0500
| Newsgroups | gmane.network.etherboot.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ricky, I prefer to keep most messages on the list so everyone can learn and help, and I don't have to repeat things (and I also sometimes forget things :) I'm glad to see that you are making progress, and hopefully we (you, me, and other folks who want to help) will come up with a good patch that adds the functionality without any unintended side-effects. Let's see if anyone else has any thoughts or interest in this. People have asked for static ip support for years, so here's a chance to provide it. Don't worry about your English, it's plenty good enough. Marty Begin forwarded message: > From: "Ricardo Carrillo Cruz" <[email protected]> > Date: March 9, 2006 6:42:04 AM EST ... > Great,i hope other people can help me,and we can together make a > decent > patch,not like mine :P >> mdc: >> I think if you turn on STATIC_ADDRESS you would then have to specify >> an entire set of addresses and values that DHCP normally supplies. I >> think what's happening with this patch is that some needed values may >> not be getting filled in at all. (Like the SERVER IP address and >> FILENAME). In particular, I'd check to make sure >> >> DEFAULT_BOOTFILE=\"tftp://10.205.99.73/thinstation.nbi\" > > > You are right.In a first patch, i added a static_server_ip() to set > the > server ip.But i thought it wasn't necessary,because i had been able to > connect to my tftp server giving its static address via the > DEFAULT_BOOTFILE > parameter you are talking about. Also, it was giving me problems > getting the > right kernel file. Although i was setting my DEFAULT_BOOTFILE, > etherboot > bypassed it every boot and tried to retrieve a kernel.ip filename > from the > tftp server.I was so annoyed,that i removed the static_server_ip() > function. > Anyway, i'll attach in a later post a new patch including the > static_server_ip(),since you were right that we need to fill DHCP > parameters > to trick etherboot. > > Is not being used within the code that is #IFDEF'ed out by >> STATIC_ADDRESS. That particular conditional looks a little drastic. >> Remember that Etherboot forever has specifically not supported having >> a static IP address, and there may be dependencies that are not >> obvious. (actually, you say the file gets loaded, so this must still >> work, but other things may not be getting init'ed that must be.) > > > Looking into first32.c,the mknbi file giving the error,i've seen > that the > code involved in shouting the error is the first function().Why? > Because it does a sanity check with a struct bootp_t argument. > Since my > patch does not fill any bootp/dhcp data, i think the patch must be > improved > in this way. > > Now, some workstations give an option to allow people to use DHCP but >> to specify a fixed IP address for the workstation. This may also be >> useful in cases where can't change their DHCP server, and where most >> of the information it returns is OK, but they need to be able to >> specify their own IP and perhaps some other parameters. > > > That's my case.I must set up thinclients in several > places,connected to a > CITRIX server.In the thinclients nets,i can't configure the dhcp > router,nor > add any dhcp server on my own.That's why i'm trying to set the > static ip > inside the etherboot rom. > This is my situation: > > A ========> B <========= C > > A=C= Thinclients connected via a ADSL router to B.The thinclients are > diskless,connects to B's tftp server,download thinstation.nbi > image,and > connects automatically to B's citrix server > B= Citrix server+tftp server serving nbi images to thinclients > > Anyway, let's take a look here and see what we can see. It's a good >> opportunity to understand how Etherboot works, and if for only that >> reason it's worthwhile. I'd like to see this as an option. >> >> Marty > > > It would be great,even if i'm not an expert,i hope we can achieve > the task > all together > > Kind regards > > Ricky > > P.D Sorry for my english,i'm a spanish linux newbie ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642