bootptab.mcs revision 50476
170856Sjhb# /etc/bootptab: database for bootp server (/etc/bootpd)
270856Sjhb# Last update: gwr, Sun Dec 12 19:00:00 EDT 1993
370856Sjhb# Blank lines and lines beginning with '#' are ignored.
470856Sjhb#
570856Sjhb# $FreeBSD: head/libexec/bootpd/bootptab.mcs 50476 1999-08-28 00:22:10Z peter $
670856Sjhb#
770856Sjhb# Legend:	(see bootptab.5)
870856Sjhb#	first field -- hostname (not indented)
970856Sjhb#	bf -- bootfile
1070856Sjhb#	bs -- bootfile size in 512-octet blocks
1170856Sjhb#	cs -- cookie servers
1270856Sjhb#	df -- dump file name
1370856Sjhb#	dn -- domain name
1470856Sjhb#	ds -- domain name servers
1570856Sjhb#	ef -- extension file
1670856Sjhb#	gw -- gateways
1770856Sjhb#	ha -- hardware address
1870856Sjhb#	hd -- home directory for bootfiles
1970856Sjhb#	hn -- host name set for client
2070856Sjhb#	ht -- hardware type
2170856Sjhb#	im -- impress servers
2270856Sjhb#	ip -- host IP address
2370856Sjhb#	lg -- log servers
2470856Sjhb#	lp -- LPR servers
2570856Sjhb#	ns -- IEN-116 name servers
2670856Sjhb#	ra -- reply address
2770856Sjhb#	rl -- resource location protocol servers
2870856Sjhb#	rp -- root path
2970856Sjhb#	sa -- boot server address
30100280Sgordon#	sm -- subnet mask
31153430Siedowse#	sw -- swap server
32136224Smtm#	tc -- template host (points to similar host entry)
33100280Sgordon#	td -- TFTP directory
34100280Sgordon#	to -- time offset (seconds)
35100280Sgordon#	ts -- time servers
36100280Sgordon#	vm -- vendor magic number
37298514Slme#	Tn -- generic option tag n
38156331Semax#
39156331Semax# Be careful about including backslashes where they're needed.  Weird (bad)
40102993Sfenner# things can happen when a backslash is omitted where one is intended.
41102993Sfenner# Also, note that generic option data must be either a string or a
42165389Syar# sequence of bytes where each byte is a two-digit hex value.
43100280Sgordon
4470856Sjhb# First, we define a global entry which specifies the stuff every host uses.
4570856Sjhb
4670856Sjhb# If you leave "td" empty, run bootpd with the "-c /tftpboot" switch
4770856Sjhb# so path names (boot files) will be interpreted relative to the same
4870856Sjhb# directory as tftpd will use when opening files.
49270935Sse.default:\
50270935Sse	:hn:dn="mc.com":\
51179981Smtm	:td=/tftpboot:\
52270935Sse	:ds=merlin, jericho:\
53179981Smtm	:to=auto:
54179981Smtm
55179981Smtm# Next, we can define different master entries for each subnet. . .
56270935Sse
57270935Sse.subnet16:\
58270935Sse	:tc=.default:\
59270935Sse	:sm=255.255.255.0:\
60270935Sse	:gw=merlin:\
61270935Sse	:sa=merlin:
62270935Sse
63270935Sse.subnet17:\
64179981Smtm	:tc=.default:\
65179981Smtm	:sm=255.255.255.0:\
66179981Smtm	:gw=merlin-gw:\
67179981Smtm	:sa=merlin-gw:
68179981Smtm
69270935Sse#
70270935Sse# We should be able to use as many levels of indirection as desired.  Use
71270935Sse# your imagination. . .
72270935Sse#
73270935Sse
74270935Sse# Individual entries (could also have different servers for some/all of these
75270935Sse# hosts, but we don't really use this feature at CMU):
76270935Sse
77270935Sse# Emulex terminal server
78270935Sseemulex:	tc=.subnet16:ha=00.00.C9.00.42.E0:bf=P4KTL0E:
79270935Sse
80270935Sse# Lantronix eps1
81270935Sseeps1:	tc=.subnet16:ha=00.80.A3.04.1D.78:
82270935Sse
83270935Sse# Tadpole 885 board.
84270935Ssetp885:  tc=.subnet17:ha=08.00.4C.00.2F.74:bf=tp885sys2.cfe:
85270935Sse
86270935Sse# MVME147 VxWorks board.
87270935Sse#mvme147:tc=.subnet17:ha=08.00.3e.20.da.47:bf=mv147vxw.st:
88270935Sse
89270935Sse# These are just for testing
90270935Ssebach:  tc=.subnet16:ha="08:00:20:04:98:8d":bf=boot.sun4m:
91270935Ssexanadu:tc=.subnet17:ha="00:80:42:42:04:c7":bf=boot.sun4c:
92270935Sse