Gentoo Archives: gentoo-doc-cvs

From: Camille Huot <cam@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: diskless-howto.xml
Date: Mon, 30 Oct 2006 16:39:41
Message-Id: 20061030163922.969F264DD6@smtp.gentoo.org
1 cam 06/10/30 16:39:22
2
3 Modified: diskless-howto.xml
4 Log:
5 Fixed incomplete dhcpd.conf, see #79504
6
7 Revision Changes Path
8 1.28 xml/htdocs/doc/en/diskless-howto.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/diskless-howto.xml?rev=1.28&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/diskless-howto.xml?rev=1.28&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/diskless-howto.xml?r1=1.27&r2=1.28
13
14 Index: diskless-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/diskless-howto.xml,v
17 retrieving revision 1.27
18 retrieving revision 1.28
19 diff -u -r1.27 -r1.28
20 --- diskless-howto.xml 22 Oct 2006 23:23:04 -0000 1.27
21 +++ diskless-howto.xml 30 Oct 2006 16:39:22 -0000 1.28
22 @@ -1,5 +1,5 @@
23 -<?xml version='1.0' encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/diskless-howto.xml,v 1.27 2006/10/22 23:23:04 nightmorph Exp $ -->
25 +<?xml version="1.0" encoding="UTF-8"?>
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/diskless-howto.xml,v 1.28 2006/10/30 16:39:22 cam Exp $ -->
27 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
28
29 <guide link="/doc/en/diskless-howto.xml">
30 @@ -27,8 +27,8 @@
31 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
32 <license/>
33
34 -<version>1.22</version>
35 -<date>2006-10-22</date>
36 +<version>1.23</version>
37 +<date>2006-10-30</date>
38
39 <chapter>
40 <title>Introduction</title>
41 @@ -515,11 +515,24 @@
42 </p>
43
44 <pre caption="Sample dhcpd.conf">
45 -# DHCP configuration file for DHCP ISC 3.0
46 -
47 +#
48 +# Sample dhcpd.conf for diskless clients
49 +#
50 +
51 +# Disable dynamic DNS
52 ddns-update-style none;
53 -
54 -# Definition of PXE-specific options
55 +
56 +# Assume one default gateway for IP traffic will do
57 +option routers 192.168.1.1;
58 +
59 +# Provide DNS info to clients
60 +option domain-name-servers 192.168.1.1;
61 +option domain-name "mydomain.com";
62 +
63 +# Specify the TFTP server to be used
64 +next-server 192.168.1.1;
65 +
66 +# Declare a vendor-specific option buffer for PXE clients:
67 # Code 1: Multicast IP address of boot file server
68 # Code 2: UDP port that client should monitor for MTFTP responses
69 # Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
70 @@ -527,7 +540,7 @@
71 # to start a new MTFTP transfer
72 # Code 5: Number of seconds a client must listen before trying to restart
73 # a MTFTP transfer
74 -
75 +
76 option space PXE;
77 option PXE.mtftp-ip code 1 = ip-address;
78 option PXE.mtftp-cport code 2 = unsigned integer 16;
79 @@ -536,68 +549,36 @@
80 option PXE.mtftp-delay code 5 = unsigned integer 8;
81 option PXE.discovery-control code 6 = unsigned integer 8;
82 option PXE.discovery-mcast-addr code 7 = ip-address;
83 -
84 +
85 +# Declare the subnet where our diskless nodes will live
86 subnet 192.168.1.0 netmask 255.255.255.0 {
87 -
88 -
89 - class "pxeclients" {
90 - match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
91 - option vendor-class-identifier "PXEClient";
92 +
93 + # Provide PXE clients with appropriate information
94 + class "pxeclient" {
95 + match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
96 vendor-option-space PXE;
97 -
98 +
99 # At least one of the vendor-specific PXE options must be set in
100 # order for the client boot ROMs to realize that we are a PXE-compliant
101 # server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
102 - # that we can't provide multicast TFTP (address 0.0.0.0 means no
103 - # address).
104 -
105 + # that we can't provide multicast TFTP.
106 +
107 option PXE.mtftp-ip 0.0.0.0;
108 -
109 +
110 # This is the name of the file the boot ROMs should download.
111 filename "pxelinux.0";
112 - # This is the name of the server they should get it from.
113 - <comment># Use the master's IP</comment>
114 - next-server 192.168.1.1;
115 }
116
117 - <comment># If you are using etherboot with a non specific image </comment>
118 + # Provide Etherboot clients with appropriate information
119 class "etherboot" {
120 - if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
121 - filename "/diskless/vmlinuz";
122 - }
123 - }
124 -
125 - pool {
126 - max-lease-time 86400;
127 - default-lease-time 86400;
128 - <comment># This prevents unlisted machines from getting an IP</comment>
129 - deny unknown-clients;
130 + match if substring(option vendor-class-identifier, 0, 9) = "Etherboot";
131 + filename "vmlinuz_arch";
132 }
133 -
134 +
135 + # Add one host declaration for each diskless host
136 host slave21 {
137 - <comment># Use your slave's MAC address</comment>
138 - hardware ethernet 00:40:63:C2:CA:C9;
139 - <comment># Give your slave a static IP</comment>
140 - fixed-address 192.168.1.21;
141 - server-name "master";
142 - <comment># Use your gateway IP, if required</comment>
143 - option routers 192.168.1.1;
144 - <comment># Use your DNS IP, if required</comment>
145 - option domain-name-servers 192.168.1.1;
146 - option domain-name "mydomain.com";
147 - <comment># Use your slave hostname</comment>
148 - option host-name "slave21";
149 -
150 -
151 - <comment># Etherboot and pxe boot with a mac specific image</comment>
152 - option root-path "/diskless/192.168.1.21";
153 -
154 - if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
155 - filename "/vmlinuz_arch";
156 - } else if substring (option vendor-class-identifier, 0,9) ="PXEClient" {
157 - filename "/pxelinux.0";
158 - }
159 -
160 + hardware ethernet 00:02:A5:04:3B:66;
161 + fixed-address 192.168.1.21;
162 }
163 }
164 </pre>
165 @@ -616,8 +597,7 @@
166 options which will be covered later). Inside the <c>host</c> block, the
167 <c>hardware ethernet</c> option specifies a MAC address, and
168 <c>fixed-address</c> assigns a fixed IP address to that particular MAC address.
169 -The <c>host-name</c> option is probably a good idea to include and is just the
170 -hostname of a particular slave. There is a pretty good man page on
171 +There is a pretty good man page on
172 <path>dhcpd.conf</path> with options that are beyond the scope of this HOWTO.
173 You can read it by typing:
174 </p>
175
176
177
178 --
179 gentoo-doc-cvs@g.o mailing list