Commit | Line | Data |
---|---|---|
e24c98a2 MR |
1 | This is a port of bootpd (CMU version 2.2a) to NetBSD-current. |
2 | ||
3 | BOOTPD is a useful adjunct to the nfs diskless boot EPROM code. | |
4 | ||
5 | The alternatives for initiating a boot of a kernel across a network | |
6 | are to use RARP protocol, or BOOTP protocol. BOOTP is more flexible; | |
7 | it allows additional items of information to be returned to the | |
8 | booting client; it also supports booting across gateways. | |
9 | ||
10 | There are two parts to this package: | |
11 | ||
12 | - The bootpd sources to be compiled and installed. | |
13 | ||
14 | - A patch to etc/services and etc/inetd.conf to define the bootpd | |
15 | network service names and to define the bootpd task to inetd. These | |
16 | items are in the PATCH file. | |
17 | ||
18 | If you have problems or questions about this port, send me email at | |
19 | mckim@lerc.nasa.gov | |
20 | ||
21 | - Jim McKim | |
22 | ||
23 | enclosed below is the original README: | |
24 | ||
25 | ||
26 | This directory contains the source for the CMU BOOTP server. The files | |
27 | include: | |
28 | ||
29 | README This file | |
30 | bootpd.8 The manual page | |
31 | bootp.h The protocol header file | |
32 | bootpd.h The server header file | |
33 | bootpd.c The main server module | |
34 | readfile.c The configuration file-reading routines | |
35 | hash.h The hash table header file | |
36 | hash.c The hash table module | |
37 | Version.c The version module | |
38 | newvers.sh A shell script to generate new version numbers | |
39 | Makefile The makefile | |
40 | bootptab An example database file for the server | |
41 | gmods Text describing optional gateway modifications | |
42 | ||
43 | ||
44 | Notes: | |
45 | 1) BOOTP was originally designed and implemented by Bill Croft at Stanford. | |
46 | Much of the credit for the ideas and the code goes to him. We've added | |
47 | code to support the vendor specific area of the packet as specified in | |
48 | RFC1048. We've also improved the host lookup algorithm and added some | |
49 | extra logging. | |
50 | ||
51 | 2) The server now uses syslog to do logging. Specifically it uses the 4.3bsd | |
52 | version. I've #ifdef'd all of these calls. If you are running 4.2 you | |
53 | should compile without the -DSYSLOG switch. | |
54 | ||
55 | 3) You must update your /etc/services file to contain the following two lines: | |
56 | bootps 67/udp # bootp server | |
57 | bootpc 68/udp # bootp client | |
58 | ||
59 | 4) The code and the bootptab should be reasonably well commented. If you | |
60 | have any questions, just let us know. | |
61 | ||
62 | Construction: | |
63 | Make sure all of the files exist first. If anything is missing, | |
64 | please contact either Walt Wimer or Drew Perkins by E-mail or phone. | |
65 | Addresses and phone numbers are listed below. | |
66 | ||
67 | Type 'make'. The options at present are: -DSYSLOG which enables logging | |
68 | code, -DDEBUG which enables table dumping via signals, and -DVEND_CMU | |
69 | which enables the CMU extensions for CMU PC/IP. | |
70 | ||
71 | Edit the bootptab. The man page and the comments in the file should | |
72 | explain how to go about doing so. If you have any problems, let me know. | |
73 | ||
74 | Type 'make install'. This should put all of the files in the right place. | |
75 | ||
76 | Edit your /etc/rc.local or /etc/inetd.conf file to start up bootpd upon | |
77 | reboot. | |
78 | ||
79 | Care and feeding: | |
80 | If you change the interface cards on your host or add new hosts you will | |
81 | need to update /etc/bootptab. Just edit it as before. Once you write | |
82 | it back out, bootpd will notice that there is a new copy and will | |
83 | reread it the next time it gets a request. | |
84 | ||
85 | If your bootp clients don't get a response then several things might be | |
86 | wrong. Most often, the entry for that host is not in the database. | |
87 | Check the hardware address and then check the entry and make sure | |
88 | everything is right. Other problems include the server machine crashing, | |
89 | bad cables, and the like. If your network is very congested you should | |
90 | try making your bootp clients send additional requests before giving up. | |
91 | ||
92 | ||
93 | November 7, 1988 | |
94 | ||
95 | ||
96 | Walter L. Wimer Drew D. Perkins | |
97 | ww0n@andrew.cmu.edu ddp@andrew.cmu.edu | |
98 | (412) 268-6252 (412) 268-8576 | |
99 | ||
100 | 4910 Forbes Ave | |
101 | Pittsburgh, PA 15213 | |
102 |