Am Dienstag, den 15.08.2006, 16:22 +0200 schrieb Richard Bos:
> This piece of magic looks very interesting as it may prevent a lot of system 
> administration work:
> subnet 192.168.0.0 netmask 255.255.255.0 {
>     range   192.168.0.100   192.168.0.199;
>     if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
>         filename "/tftpboot/lts/2.4.26-ltsp-3/pxelinux.0";
>     }
>     else{
>         filename "/tftpboot/lts/vmlinuz-2.4.26-ltsp-3";
>     }
> }
> It's from: http://wiki.ltsp.org/twiki/bin/view/Ltsp/DhcpExample
> 
> But will this allow the current locale device impletation still to keep on 
> working.  AFAIK the current locale device implementation needs names to be 
> able to work.  In the configuration above no names are configured, in 
> contradiction to my dhcp file, that has e.g.:
> 
> host ws01 {
>   hardware ethernet ............;
>   fixed-address ...........;
>   filename............;
> }
> 
> if the host { } is left out of configuration file, the workstation may get 
> different ip addresses each times it connects to the server.  It will get the 
> name that corresponds to the ip address from the DNS server so, all in all it 
> looks to me that "substring" dhcp configuration will just work, but a 
> confirmation would be nice.

You can copy those five lines   if substring {} else {}
and paste them instead of any "filename" line, be that in a host {}
statement or not. It will work fine.

> A related question to this, in case the thin client needs requires additional 
> options, can this work in combination with the "substring" dhcp 
> configuration?  If this can work how should it be done?  If;
> 
> host ws15 {
>   hardware ethernet ............;
>   fixed-address ...........;
>   filename............;
>   option option-128 .........;
>   option option-129 .........;
> }

Yep, and you can replace the "filename" line as explained above, if you
wish.

You could also have only one "filename" line in the global part of the
dhcpd.conf, which then is the default if nothing else is given in the
host{} specific sections.

> Doesn't the 'host ws15' configuration conflict with the name given out by the 
> DNS server?

Nope, they do not necessarily interfere. 

> Perhaps I get it, the ip range of the subnet of the "substring" dhcp 
> configuration, should be outside the ip addresses that the "host {  }" part 
> gives out.  Is that correct?

You can have both, but the "range" should better not include IP
addresses that appear in separate "host" sections. I seem to remember
that dhcpd is intelligent enough to not hand out IP addresses out of the
range that also are in host{} statements, but I'd not guarantee for
that.

Anselm


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to