home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / docs / DHCP-Server-Configuration.txt < prev    next >
Text File  |  1998-05-12  |  8KB  |  203 lines

  1. !==
  2. !== DHCP-Server-Configuration.txt for Samba release 1.9.18p7 13 May 1998
  3. !==
  4. Subject:    DHCP Server Configuration for SMB Clients
  5. Date:        March 1, 1998
  6. Contributor:    John H Terpstra <jht@samba.anu.edu.au>
  7. Support:    This is an unsupported document. Refer to documentation that is
  8.         supplied with the ISC DHCP Server. Do NOT email the contributor
  9.         for ANY assistance.
  10. ===============================================================================
  11.  
  12. Background:
  13. ===========
  14.  
  15. We wish to help those folks who wish to use the ISC DHCP Server and provide
  16. sample configuration settings. Red Hat Linux 5.0 is one operating system that
  17. comes supplied with the ISC DHCP Server.
  18.  
  19. Incorrect configuration of MS Windows clients (Windows95, Windows NT Server and
  20. Workstation) will lead to problems with browsing and with general network
  21. operation. Windows95 users often report problems where the TCP/IP and related
  22. network settings will inadvertantly become reset at machine start-up resulting
  23. in loss of configuration settings. This results in increased maintenance
  24. overheads as well as serious user frustration.
  25.  
  26. In recent times users on one mailing list oncorrectly attributed the cause of
  27. network operating problems to incorrect configuration of Samba.
  28.  
  29. One userinsisted that the only way to provent Windows95 from periodically
  30. performing a full system reset and hardware detection process on start-up was
  31. to install the NetBEUI protocol in addition to TCP/IP.
  32.  
  33. In the first place, there is NO need for NetBEUI. All Microsoft Windows clients
  34. natively run NetBIOS over TCP/IP, and that is the only protocol that is
  35. recognised by Samba. Installation of NetBEUI and/or NetBIOS over IPX will
  36. cause problems with browse list operation on most networks. Even Windows NT
  37. networks experience these problems when incorrectly configured Windows95
  38. systems share the same name space. It is important that only those protocols
  39. that are strictly needed for site specific reasons should EVER be installed.
  40.  
  41. Secondly, and totally against common opinion, DHCP is NOT an evil design but is
  42. an extension of the BOOTP protocol that has been in use in Unix environments
  43. for many years without any of the melt-down problems that some sensationalists
  44. would have us believe can be experienced with DHCP. In fact, DHCP in covered by
  45. rfc1541 and is a very safe method of keeping an MS Windows desktop environment
  46. under control and for ensuring stable network operation.
  47.  
  48. While it is true that the Microsoft DHCP server that comes with Windows NT
  49. Server provides only a sub-set of rfc1533 functionality this is hardly an issue
  50. in those sites that already have a large investment and commitment to Unix
  51. systems and technologies. The current state of the art of the DHCP Server
  52. specification in covered in rfc2132.
  53.  
  54. This document aims to provide enough background information so that the
  55. majority of site can without too much hardship get the Internet Software
  56. Consortium's (ISC) DHCP Server into operation. The key benefits of using DHCP
  57. includes:
  58.  
  59. 1) Automated IP Address space management and maximised re-use of available IP
  60. Addresses,
  61.  
  62. 2) Automated control of MS Windows client TCP/IP network configuration,
  63.  
  64. 3) Automatic recovery from start-up and run-time problems with Windows95.
  65.  
  66.  
  67.  
  68. Client Configuration for SMB Networking:
  69. ========================================
  70. SMB network clients need to be configured so that all standard TCP/IP name to
  71. address resolution works correctly. Once this has been achieved the SMB
  72. environment provides additional tools and services that act as helper agents in
  73. the translation of SMB (NetBIOS) names to their appropriate IP Addresses. One
  74. such helper agent is the NetBIOS Name Server (NBNS) or as Microsoft called it
  75. in their Windows NT Server implementation WINS (Windows Internet Name Server).
  76.  
  77. A client needs to be configured so that it has a unique Machine (Computer)
  78. Name. This can NOT be done via DHCP and must be assigned when MS Windows
  79. networking is first installed. All remaining TCP/IP networking parameters can
  80. be assigned via DHCP. These include:
  81.  
  82. a) IP Address,
  83. b) Netmask,
  84. c) Gateway (Router) Address,
  85. d) DNS Domain Name,
  86. e) DNS Server addresses,
  87. f) WINS (NBNS) Server addresses,
  88. g) IP Forwarding,
  89. h) Timezone offset, 
  90. i) Node Type,
  91.  
  92. Other assignments can be made from a DHCP server too, but the above cover the
  93. major needs.
  94.  
  95.  
  96. DHCP Server Installation:
  97. =========================
  98. It is assumed that you will have obtained a copy of the GPL'd ISC DHCP server
  99. source files from ftp://ftp.isc.org/pub/dhcp, it is also assumed that you have
  100. compiled the sources and have installed the binary files.
  101.  
  102. The following simply serves to provide sample configuration files to enable
  103. dhcpd to operate. The sample files assume that your site is configured to use
  104. private IP network address space using the Class B range of 172.16.1.0 -
  105. 172.16.1.255 and is using a netmask of 255.255.255.0 (ie:24 bits). It is
  106. assumed that you router to the outside world is at 172.16.1.254 and that your
  107. Internet Domain Name is bestnet.com.au. The IP Address range 172.16.1.100 to
  108. 172.16.1.240 has been set aside as your dynamically allocated range. In
  109. addition, bestnet.com.au have two print servers that need to obtain settings
  110. via BOOTP. The machine linux.bestnet.com.au has IP address 172.16.1.1 and is
  111. you primary Samba server with WINS support enabled by adding the parameter to
  112. the /etc/smb.conf file: [globals] wins support = yes. The dhcp lease time will
  113. be set to 20 hours.
  114.  
  115. Configuration Files:
  116. ====================
  117. Before dhcpd will run you need to install a file that speifies the
  118. configuration settings, and another that holds the database of issued IP
  119. addresses. On many systems these are stored in the /etc directory on the Unix
  120. system.
  121.  
  122. Example /etc/dhcpd.conf:
  123. ========================
  124. server-identifier linux.bestnet.com.au;
  125.  
  126. subnet 172.16.1.0 netmask 255.255.255.0 {
  127.     range 172.16.1.100 172.16.1.240;
  128.     default-lease-time 72000;
  129.     max-lease-time 144000;
  130.     option subnet-mask 255.255.255.0;
  131.     option broadcast-address 172.16.1.255;
  132.     option routers 172.16.1.254;
  133.     option domain-name-servers 172.16.1.1, 172.16.1.2;
  134.     option domain-name "bestnet.com.au";
  135.     option time-offset 39600;
  136.     option ip-forwarding off;
  137.     option netbios-name-servers 172.16.0.1;
  138.     option netbios-dd-server 172.16.0.1;
  139.     option netbios-node-type 8;
  140. }
  141.  
  142. group {
  143.     next-server 172.16.1.10;
  144.     option subnet-mask 255.255.255.0;
  145.     option domain-name "bestnet.com.au";
  146.     option domain-name-servers 172.16.1.1, 172.16.0.2;
  147.     option netbios-name-servers 172.16.0.1;
  148.     option netbios-dd-server 172.16.0.1;
  149.     option netbios-node-type 8;
  150.     option routers 172.16.1.240;
  151.     option time-offset 39600;
  152.     host lexmark1 {
  153.         hardware ethernet 06:07:08:09:0a:0b;
  154.         fixed-address 172.16.1.245;
  155.     }
  156.     host epson4 {
  157.         hardware ethernet 01:02:03:04:05:06;
  158.         fixed-address 172.16.1.242;
  159.     }
  160. }
  161.  
  162.  
  163. Creating the /etc/dhcpd.leases file:
  164. ====================================
  165. At a Unix shell create an empty dhcpd.leases file in the /etc directory.
  166. You can do this by typing:    cp /dev/null /etc/dhcpd.leases
  167.  
  168.  
  169. Setting up a route table for all-ones addresses:
  170. ================================================
  171. Quoting from the README file that comes with th eISC DHCPD Server:
  172.  
  173.                               BROADCAST
  174.  
  175. In order for dhcpd to work correctly with picky DHCP clients (e.g.,
  176. Windows 95), it must be able to send packets with an IP destination
  177. address of 255.255.255.255.  Unfortunately, Linux insists on changing
  178. 255.255.255.255 into the local subnet broadcast address (here, that's
  179. 192.5.5.223).  This results in a DHCP protocol violation, and while
  180. many DHCP clients don't notice the problem, some (e.g., all Microsoft
  181. DHCP clients) do.  Clients that have this problem will appear not to
  182. see DHCPOFFER messages from the server.
  183.  
  184. It is possible to work around this problem on some versions of Linux
  185. by creating a host route from your network interface address to
  186. 255.255.255.255.   The command you need to use to do this on Linux
  187. varies from version to version.   The easiest version is:
  188.  
  189.     route add -host 255.255.255.255 dev eth0
  190.  
  191. On some older Linux systems, you will get an error if you try to do
  192. this.   On those systems, try adding the following entry to your
  193. /etc/hosts file:
  194.  
  195. 255.255.255.255    all-ones
  196.  
  197. Then, try:
  198.  
  199.     route add -host all-ones dev eth0
  200.  
  201.  
  202. For more information please refer to the ISC DHCPD Server documentation.
  203.