Update to r44122:
Use the absolute path to dhcpd.conf. Submitted by: Bjoern Heidotting Obtained from: The FreeBSD German Documentation Project
This commit is contained in:
parent
3ae703a554
commit
723a29825d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45198
1 changed files with 34 additions and 64 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
$FreeBSD$
|
||||
$FreeBSDde:$
|
||||
basiert auf: r44080
|
||||
basiert auf: r44122
|
||||
-->
|
||||
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
|
||||
|
@ -54,13 +54,8 @@ xml:id="advanced-networking">
|
|||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Einen plattenlosen Rechner über das Netzwerk starten
|
||||
können.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Wissen, wie man mithilfe von PXE über ein Netzwerk
|
||||
bootet und ein NFS-Root-Dateisystem einrichtet.</para>
|
||||
<para>Wissen, wie man mithilfe von <acronym>PXE</acronym> über
|
||||
ein Netzwerk bootet.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
|
@ -4192,7 +4187,9 @@ DHCP"</programlisting>
|
|||
</sect1>
|
||||
|
||||
<sect1 xml:id="network-diskless">
|
||||
<info><title>Start und Betrieb von &os; über ein Netzwerk</title>
|
||||
<info>
|
||||
<title>Plattenloser Betrieb mit <acronym>PXE</acronym></title>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<personname>
|
||||
|
@ -4445,9 +4442,6 @@ DHCP"</programlisting>
|
|||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Installationsanweisungen</title>
|
||||
|
||||
<sect3>
|
||||
<title>Konfiguration unter Verwendung von
|
||||
<application>ISC DHCP</application></title>
|
||||
|
||||
|
@ -4557,9 +4551,9 @@ DHCP"</programlisting>
|
|||
dem <acronym>TFTP</acronym>-Server.</para>
|
||||
</callout>
|
||||
</calloutlist>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect3>
|
||||
<sect2>
|
||||
<title>Konfiguration bei Verwendung von BOOTP</title>
|
||||
|
||||
<indexterm>
|
||||
|
@ -4592,9 +4586,9 @@ DHCP"</programlisting>
|
|||
:rp="192.168.4.4:/data/misc/diskless":
|
||||
|
||||
margaux:ha=0123456789ab:tc=.def100</programlisting>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect3>
|
||||
<sect2>
|
||||
<title>Ein Startprogramm unter Verwendung von
|
||||
<application>Etherboot</application> erstellen</title>
|
||||
|
||||
|
@ -4640,10 +4634,11 @@ margaux:ha=0123456789ab:tc=.def100</programlisting>
|
|||
verfügt. Lesen Sie dazu <filename>NIC</filename> im
|
||||
gleichen Verzeichnis, um den richtigen Wert für
|
||||
<replaceable>devicetype</replaceable> zu bestimmen.</para>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect3>
|
||||
<title>Das System mit <acronym>PXE</acronym> starten</title>
|
||||
<sect2>
|
||||
<title>Konfiguration des <acronym>PXE</acronym> und
|
||||
<acronym>NFS</acronym> Servers</title>
|
||||
|
||||
<para>In der Voreinstellung lädt der
|
||||
&man.pxeboot.8;-Loader den Kernel über
|
||||
|
@ -4669,11 +4664,6 @@ margaux:ha=0123456789ab:tc=.def100</programlisting>
|
|||
aktivieren. Alternativ können Sie während der
|
||||
PC-Initialisierung auch eine Funktionstaste drücken.
|
||||
</para>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>Serverkonfiguration - <acronym>TFTP</acronym> und
|
||||
<acronym>NFS</acronym></title>
|
||||
|
||||
<indexterm>
|
||||
<primary>TFTP</primary>
|
||||
|
@ -4729,7 +4719,8 @@ margaux:ha=0123456789ab:tc=.def100</programlisting>
|
|||
<filename>/tftpboot</filename> an einem beliebigen Ort auf dem
|
||||
Server ablegen. Stellen Sie aber sicher, dass Sie diesen Ort
|
||||
sowohl in <filename>inetd.conf</filename> als auch in
|
||||
<filename>dhcpd.conf</filename> eingetragen haben.</para>
|
||||
<filename>/usr/local/etc/dhcpd.conf</filename> eingetragen
|
||||
haben.</para>
|
||||
|
||||
<para>Außerdem müssen Sie NFS aktivieren und die
|
||||
entsprechenden Verzeichnisse exportieren.</para>
|
||||
|
@ -4767,10 +4758,6 @@ margaux:ha=0123456789ab:tc=.def100</programlisting>
|
|||
<screen>&prompt.root; <userinput>/etc/rc.d/mountd restart</userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>Einen plattenlosen Kernel erzeugen</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>plattenloser Betrieb</primary>
|
||||
|
@ -4799,7 +4786,8 @@ options BOOTP_NFSROOT # NFS mount root file system using BOOTP info</progra
|
|||
|
||||
<para>Erzeugen Sie den neuen Kernel (lesen Sie dazu auch
|
||||
<xref linkend="kernelconfig"/>) und kopieren Sie ihn an den
|
||||
in <filename>dhcpd.conf</filename> festgelegten Ort.</para>
|
||||
in <filename>/usr/local/etc/dhcpd.conf</filename> festgelegten
|
||||
Ort.</para>
|
||||
|
||||
<note><para>Wenn Sie <acronym>PXE</acronym> verwenden, ist die
|
||||
Erzeugung eines Kernels zwar nicht unbedingt nötig, sie
|
||||
|
@ -4826,10 +4814,6 @@ options BOOTP_NFSROOT # NFS mount root file system using BOOTP info</progra
|
|||
|
||||
<programlisting>hints "GENERIC.hints"</programlisting>
|
||||
</note>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>Das root-Dateisystem erzeugen</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>Root-Dateisystem</primary>
|
||||
|
@ -4838,12 +4822,11 @@ options BOOTP_NFSROOT # NFS mount root file system using BOOTP info</progra
|
|||
|
||||
<para>Sie müssen für den plattenlosen Rechner ein
|
||||
root-Dateisystem erzeugen, und zwar an dem in
|
||||
<filename>dhcpd.conf</filename> als
|
||||
<filename>/usr/local/etc/dhcpd.conf</filename> als
|
||||
<literal>root-path</literal> festgelegten Ort.</para>
|
||||
|
||||
<sect4>
|
||||
<title><command>make world</command> zum Füllen des
|
||||
Dateisystems einsetzen</title>
|
||||
<para><command>make world</command> zum Füllen des
|
||||
Dateisystems einsetzen</para>
|
||||
|
||||
<para>Diese schnelle Methode installiert ein komplettes
|
||||
<quote>jungfräuliches</quote> System (und nicht nur ein
|
||||
|
@ -4863,20 +4846,15 @@ cd /usr/src/etc; make distribution</programlisting>
|
|||
<filename>/etc/rc.conf</filename> sowie
|
||||
<filename>/etc/fstab</filename> Ihren Wünschen
|
||||
anpassen.</para>
|
||||
</sect4>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect3>
|
||||
<sect2>
|
||||
<title>Den Auslagerungsbereich konfigurieren</title>
|
||||
|
||||
<para>Falls nötig, kann eine auf dem
|
||||
<acronym>NFS</acronym>-Server liegende Datei als
|
||||
Auslagerungsdatei eingerichtet werden.</para>
|
||||
|
||||
<sect4>
|
||||
<title>Eine <acronym>NFS</acronym>-Auslagerungsdatei
|
||||
einrichten</title>
|
||||
|
||||
<para>Der Kernel unterstützt beim Systemstart keine
|
||||
<acronym>NFS</acronym>-Auslagerungsdatei. Diese muss daher
|
||||
in den Startskripten aktiviert werden, indem ein
|
||||
|
@ -4891,30 +4869,23 @@ cd /usr/src/etc; make distribution</programlisting>
|
|||
folgende Zeile in <filename>rc.conf</filename> ein:</para>
|
||||
|
||||
<programlisting>swapfile=<replaceable>/path/to/swapfile</replaceable></programlisting>
|
||||
</sect4>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect3>
|
||||
<sect2>
|
||||
<title>Verschiedenes</title>
|
||||
|
||||
<sect4>
|
||||
<title>Schreibgeschütztes Dateisystem
|
||||
<filename>/usr</filename></title>
|
||||
|
||||
<indexterm>
|
||||
<primary>plattenloser Betrieb</primary>
|
||||
<secondary>/usr schreibgeschützt</secondary>
|
||||
</indexterm>
|
||||
|
||||
<para>Wenn am plattenlosen Rechner X läuft, müssen
|
||||
<para>Wenn am plattenlosen Rechner
|
||||
<application>&xorg;</application> sowie ein
|
||||
schreibgeschütztes <filename>/usr</filename> läuft, müssen
|
||||
Sie die Konfigurationsdatei von
|
||||
<application>XDM</application> anpassen, da Fehlermeldungen
|
||||
in der Voreinstellung auf <filename>/usr</filename>
|
||||
geschrieben werden.</para>
|
||||
</sect4>
|
||||
|
||||
<sect4>
|
||||
<title>Der Server läuft nicht unter &os;</title>
|
||||
|
||||
<para>Wenn das root-Dateisystem nicht auf einem
|
||||
&os;-Rechner liegt, muss das Dateisystem zuerst unter
|
||||
|
@ -4930,13 +4901,10 @@ cd /usr/src/etc; make distribution</programlisting>
|
|||
Eine Problemlösung besteht darin, das root-Verzeichnis
|
||||
auf einem &os;-Rechner einzuhängen und die
|
||||
Gerätedateien dort mit &man.devfs.5; zu erzeugen.</para>
|
||||
</sect4>
|
||||
</sect3>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
|
||||
<sect1 xml:id="network-pxe-nfs">
|
||||
<sect2 xml:id="network-pxe-nfs">
|
||||
<info>
|
||||
<title><acronym>PXE</acronym>-Boot mit einem
|
||||
<acronym>NFS</acronym>-Root-Dateisystem</title>
|
||||
|
@ -4981,6 +4949,7 @@ cd /usr/src/etc; make distribution</programlisting>
|
|||
&os;-Bootsequenz fortgefahren. Weitere Informationen über den
|
||||
Bootvorgang unter &os; finden Sie in <xref
|
||||
linkend="boot"/>.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Einrichtung der <command>chroot</command>-Umgebung für
|
||||
|
@ -5243,8 +5212,8 @@ subnet 192.168.0.0 netmask 255.255.255.0 {
|
|||
<acronym>TFTP</acronym>-Server und vergewissern Sie sich,
|
||||
dass die <filename>pxeboot</filename>-Datei von der
|
||||
richtigen Adresse heruntergeladen wurde. Um die obige
|
||||
Konfiguration von <filename>dhcpd.conf</filename> zu
|
||||
testen, geben Sie folgendes ein:</para>
|
||||
Konfiguration von <filename>/usr/local/etc/dhcpd.conf</filename>
|
||||
zu testen, geben Sie folgendes ein:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>tftp 192.168.0.1</userinput>
|
||||
tftp> <userinput>get FreeBSD/install/boot/pxeboot</userinput>
|
||||
|
@ -5259,7 +5228,8 @@ Received 264951 bytes in 0.1 seconds</screen>
|
|||
<step>
|
||||
<para>Achten Sie darauf, dass Sie das Root-Dateisystem über
|
||||
<acronym>NFS</acronym> einhängen können. Auch hier können
|
||||
Sie Ihre Einstellungen aus <filename>dhcpd.conf</filename>
|
||||
Sie Ihre Einstellungen aus
|
||||
<filename>/usr/local/etc/dhcpd.conf</filename>
|
||||
wie folgt testen:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>mount -t nfs 192.168.0.1:/b
|
||||
|
|
Loading…
Reference in a new issue