summaryrefslogtreecommitdiff
path: root/ja/install-methods/tftp/dhcp.xml
blob: 74fab66e47a6296c9c5a4409002d40c0f15e0cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="EUC-JP"?>
<!-- retain these comments for translator revision tracking -->
<!-- original version: 29400 -->

  <sect2 condition="supports-dhcp" id="dhcpd">
   <title>DHCP サーバの設定</title>
<para>

<!--
One free software DHCP server is ISC <command>dhcpd</command>.
In &debian;, this is available in the <classname>dhcp</classname> package.
Here is a sample configuration file for it (usually
<filename>/etc/dhcpd.conf</filename>):
-->
フリーソフトウェアの DHCP サーバのひとつは、
ISC の <command>dhcpd</command> です。
&debian; では、これは <classname>dhcp</classname> パッケージに入っています。
次に示すのは、<classname>dhcp</classname> の設定ファイル
(普通は <filename>/etc/dhcpd.conf</filename>) の例です。

<informalexample><screen>
option domain-name "example.com";
option domain-name-servers ns1.example.com;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
server-name "servername";

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.200 192.168.1.253;
  option routers 192.168.1.1;
}

host clientname {
  filename "/tftpboot/tftpboot.img";
  server-name "servername";
  next-server servername;
  hardware ethernet 01:23:45:67:89:AB;
  fixed-address 192.168.1.90;
}
</screen></informalexample>

<!--
Note: the new (and preferred) <classname>dhcp3</classname> package uses
<filename>/etc/dhcp3/dhcpd.conf</filename>.
-->
注: 新しい(そして好ましい) <classname>dhcp3</classname> パッケージは
<filename>/etc/dhcp3/dhcpd.conf</filename> を使用します。

</para><para>

<!--
In this example, there is one server
<replaceable>servername</replaceable> which performs all of the work
of DHCP server, TFTP server, and network gateway.  You will almost
certainly need to change the domain-name options, as well as the
server name and client hardware address.  The
<replaceable>filename</replaceable> option should be the name of the
file which will be retrieved via TFTP.
-->
この例では、<replaceable>servername</replaceable> というサーバがひとつあり、
DHCP サーバ, TFTP サーバ, ネットワークゲートウェイの仕事をすべて行っています。
domain-name オプション、サーバ名、クライアントのハードウェアアドレスは、
必ず変更する必要があります。
<replaceable>filename</replaceable> オプションは TFTP 経由で取得するファイルの名前です。

</para><para>

<!--
After you have edited the <command>dhcpd</command> configuration file,
restart it with <userinput>/etc/init.d/dhcpd restart</userinput>.
-->
<command>dhcpd</command> の設定ファイルの編集を終えたら、
<userinput>/etc/init.d/dhcpd restart</userinput> によって
<command>dhcpd</command> を再起動してください。

</para>

   <sect3 arch="x86">
   <title>DHCP 設定での PXE 起動の有効化</title>
<para>
<!--
Here is another example for a <filename>dhcp.conf</filename> using the
Pre-boot Execution Environment (PXE) method of TFTP.
-->
ここでは TFTP の Pre-boot Execution Environment (PXE) 法を用いた、
<filename>dhcp.conf</filename> の例を示します。

<informalexample><screen>
option domain-name "example.com";

default-lease-time 600;
max-lease-time 7200;

allow booting;
allow bootp;

# The next paragraph needs to be modified to fit your case
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.200 192.168.1.253;
  option broadcast-address 192.168.1.255;
# the gateway address which can be different
# (access to the internet for instance)
  option routers 192.168.1.1;
# indicate the dns you want to use
  option domain-name-servers 192.168.1.3;
}

group {
 next-server 192.168.1.3;
 host tftpclient {
# tftp client hardware address
  hardware ethernet  00:10:DC:27:6C:15;
  filename "/tftpboot/pxelinux.0";
 }
}
</screen></informalexample>

<!--
Note that for PXE booting, the client filename <filename>pxelinux.0</filename>
is a boot loader, not a kernel image (see <xref linkend="tftp-images"/>
below).
-->
PXE ブートでは、クライアントのファイル名はカーネルイメージではなく、
ブートローダであることに注意してください。
(以下 <xref linkend="tftp-images"/> 参照)

</para>
   </sect3>
  </sect2>