[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [patch] debian-manual simplify dhcpd pxe sample conf



On Sat, Nov 27, 2004 at 02:14:21AM +0100, maximilian attems wrote:
> On Sat, 27 Nov 2004, Geert Stappers wrote:
> 
> > On Fri, Nov 26, 2004 at 11:05:02PM +0100, maximilian attems wrote:
> > > the example snippet for pxe use is quite complicated.
> > > belows simplified config works for me and is greatly inspired by
> > > -> http://wiki.debian.net/index.cgi?DebianInstallerBootpTFTP
> > > 
> > > yourfoobar may guide newbies like me. :-)
> > > 
> > > --
> > > maks
> > > 
> > > 
> > > Index: installer/doc/manual/en/install-methods/tftp/dhcp.xml
> > > ===================================================================
> > > --- installer/doc/manual/en/install-methods/tftp/dhcp.xml	(revision 24001)
> > > +++ installer/doc/manual/en/install-methods/tftp/dhcp.xml	(working copy)
> > > @@ -63,10 +63,11 @@
> > >  
> > >  <informalexample><screen>
> > >  
> > > -option domain-name "example.com";
> > > +option domain-name "yourdomain.org";
> > > +option domain-name-servers yournameserver.org;
> >                  ^^^^^^^^^^^^DNS
> > > -default-lease-time 6048;
> > > -max-lease-time 604800;
> > > +default-lease-time 600;
> > > +max-lease-time 7200;
> > the longer times are fine
> 
> shure but also pretty useless and aboves values are the one
> from the default config.

You are right   ( I was too conservative )

> > >  allow booting;
> > >  allow bootp;
> > > @@ -74,30 +75,17 @@
> > >  # The next paragraph needs to be modified to fit your case
> > >  subnet 192.168.1.0 netmask 255.255.255.0 {
> > >    range 192.168.1.200 192.168.1.253;
> > > -  option subnet-mask 255.255.255.0;
> > > -  option broadcast-address 192.168.1.255;
> > > +# tftp server ip address
> > > +  next-server 192.168.1.90;
> > >  # the gateway address which can be different 
> > >  # (access to the internet for instance)
> > >    option routers 192.168.1.1;
> > > -# indicate the dns you want to use
> > > -  option domain-name-servers 192.168.1.3;
> >             ^^^^^^^^^^^^^^^^^^^DNS
> > 
> > 
> > You moved the DNS entry
> > and asume a proper working DNS for the DHCP server.
> > ( I don't like IP address neither in config files,
> >   but it's "advantage" is that it don't need DNS )
> 
> ok thanks for the hint, yes on the networks that i administer
> i assume a working dns. glad to hear d-i doesn't..
> 
> anyway i still think that aboves dhcp entry is overcrafted
> and that the one in the wiki gives you nice results.
> 
>  
> > > -}
> > > -
> > > -host tftpserver {
> > > -# tftp server ip address
> > > -  fixed-address 192.168.1.90;
> > > +  filename "/tftpboot/pxelinux.0";
> > > +  host tftpserver {
> > >  # tftp server hardware address
> > >    hardware ethernet 01:23:45:67:89:AB;
> > >  }
> > >  
> > > -group {
> > > - next-server 192.168.1.3;
> > > - host tftpclient {
> > > -# tftp client hardware address
> > > -  hardware ethernet  00:10:DC:27:6C:15;
> > > -  filename "/tftpboot/pxelinux.0";
> > > - }
> > > -}
> > 
> > That is deleting the client it is all about.
> well this entry got pushed up! 
> i agree that patches are not always easy readable.
> 
> > >  
> > >  </screen></informalexample>
> > 
> > Please change the wiki
> 
> no i won't for shure as it's config is much easier to implement
> and works for lots of people.


Okay, this what I just committed:

--- installer/doc/manual/en/install-methods/tftp/dhcp.xml (revision 26467)
+++ installer/doc/manual/en/install-methods/tftp/dhcp.xml (working copy)
@@ -59,8 +59,8 @@
 <informalexample><screen>
 option domain-name "example.com";

-default-lease-time 6048;
-max-lease-time 604800;
+default-lease-time 600;
+max-lease-time 7200;

 allow booting;
 allow bootp;
@@ -68,7 +68,6 @@
 # The next paragraph needs to be modified to fit your case
 subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.200 192.168.1.253;
-  option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.1.255;
 # the gateway address which can be different
 # (access to the internet for instance)
@@ -77,13 +76,6 @@
   option domain-name-servers 192.168.1.3;
 }

-host tftpserver {
-# tftp server ip address
-  fixed-address 192.168.1.90;
-# tftp server hardware address
-  hardware ethernet 01:23:45:67:89:AB;
-}
-
 group {
  next-server 192.168.1.3;
  host tftpclient {



Cheers
Geert Stappers



Reply to: