cvs commit: BLFS/packages/d dhcp-config.xml dhcp-desc.xml

markh at linuxfromscratch.org markh at linuxfromscratch.org
Sat Apr 20 14:36:43 PDT 2002


markh       02/04/20 14:36:43

  Modified:    chapter01 changelog.xml
               packages/d dhcp-config.xml dhcp-desc.xml
  Log:
  add dhcp server script instructions
  
  Revision  Changes    Path
  1.65      +3 -0      BLFS/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/chapter01/changelog.xml,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- changelog.xml	20 Apr 2002 21:06:36 -0000	1.64
  +++ changelog.xml	20 Apr 2002 21:36:43 -0000	1.65
  @@ -10,6 +10,9 @@
   
   <itemizedlist>
   
  +<listitem><para>April 20th, 2002 [markh]: Chapter 09 - Add DHCP server
  +instructions.</para></listitem>
  +
   <listitem><para>April 20th, 2002 [markh]: Chapter 06 - We now have DHCP
   client configuration instructions.</para></listitem>
   
  
  
  
  1.2       +72 -2     BLFS/packages/d/dhcp-config.xml
  
  Index: dhcp-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/packages/d/dhcp-config.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dhcp-config.xml	28 Mar 2002 00:48:12 -0000	1.1
  +++ dhcp-config.xml	20 Apr 2002 21:36:43 -0000	1.2
  @@ -7,9 +7,79 @@
   
   <sect4><title>Configuration Information</title>
   
  -<para>Information on configuring dhcpd as a server will appear here
  -later.  Information on configuring the dhcp client can be found in
  +<para>Information on configuring the dhcp client can be found in
   Chapter 06.</para>
  +
  +<para>Note that you only want to start the dhcp server if you want to
  +issue LAN addresses over your network.  The dhcp client doesn't need
  +this script to be used.  Also note that this script is coded for the
  +'eth1' INTERFACE, which may need to be modified for your hardware
  +configuration. With that in mind the dhcp init.d script can be created
  +using the following commands.</para>
  +
  +<para><screen><userinput>cat > /etc/rc.d/init.d/dhcp << "EOF"</userinput>
  +#!/bin/sh
  +# Begin $rc_base/init.d/dhcp
  +
  +# Based on sysklogd script from LFS-3.1 and earlier.
  +# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  +
  +source /etc/sysconfig/rc
  +source $rc_functions
  +
  +case "$1" in
  +        start)
  +                echo "Starting DHCP Server..."
  +                loadproc dhcpd -q eth1
  +                ;;
  +
  +        stop)
  +                echo "Stopping DHCP Server..."
  +                killproc dhcpd
  +                ;;
  +
  +        reload)
  +                echo "Reloading DHCP Server..."
  +                reloadproc dhcpd
  +                ;;
  +
  +        restart)
  +                $0 stop
  +                sleep 1
  +                $0 start
  +                ;;
  +
  +        status)
  +                statusproc dhcpd
  +                ;;
  +
  +        *)
  +                echo "Usage: $0 {start|stop|reload|restart|status}"
  +                exit 1
  +                ;;
  +esac
  +
  +# End $rc_base/init.d/dhcp
  +<userinput>EOF
  +chmod 755 /etc/rc.d/init.d/dhcp</userinput></screen></para>
  +
  +<para>The follow commands will create a base configuration file for a
  +dhcp server.  There are several options that you may want to
  +add (information that is passed back to the dhcp client) and those are
  +covered in the man pages for <filename>dhcp.conf</filename>.</para>
  +
  +<para><screen><userinput>cat > /etc/dhcpd.conf << "EOF"</userinput>
  +default-lease-time 72000;
  +max-lease-time 144000;
  +
  +subnet 192.168.5.0 netmask 255.255.255.0 {
  +  range 192.168.5.10 192.168.5.240;
  +  option broadcast-address 195.168.5.255;
  +  option routers 192.168.5.1;
  +}
  +<userinput>EOF</userinput></screen></para>
  +
  +<para>All addresses should be changed to meet your circumstance.</para>
   
   </sect4>
   
  
  
  
  1.2       +2 -1      BLFS/packages/d/dhcp-desc.xml
  
  Index: dhcp-desc.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/packages/d/dhcp-desc.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dhcp-desc.xml	28 Mar 2002 00:48:12 -0000	1.1
  +++ dhcp-desc.xml	20 Apr 2002 21:36:43 -0000	1.2
  @@ -1,7 +1,8 @@
   <sect3>
   <title>Contents</title>
   
  -<para>The dhcp package contains <userinput>dhclient, dhcpd</userinput>
  +<para>The dhcp package contains <userinput>dhclient</userinput>,
  +<userinput>dhcpd</userinput>
   and <userinput>dhcrelay</userinput>.</para>
   
   </sect3>
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-book' in the subject header of the message



More information about the blfs-book mailing list