OSDN Git Service

clfs-3.0.0-systemd.
[clfsja/cross-lfs-ja.git] / src / network / common / sysconfig-network.ch
1 %
2 % This is part of CLFSja package.
3 %
4 % This is a CTIE change file for the original XML source of the CLFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13   <title>Static Networking Configuration</title>
14 @y
15   <title>スタティックなネットワーク設定</title>
16 @z
17
18 @x
19     <title>Creating the Static Network Interface Configuration Files</title>
20 @y
21     <title>スタティックネットワークインターフェイス向け設定ファイルの生成</title>
22 @z
23
24 @x
25     <para>Which interfaces are brought up and down by the network script
26     depends on the files and directories in the <filename
27     class="directory">/etc/sysconfig</filename> hierarchy.
28     This directory should contain a sub-directory for each interface to be
29     configured, such as <filename>ifconfig.xyz</filename>, where
30     <quote>xyz</quote> is a network interface name. Inside this directory
31     would be files defining the attributes to this interface, such as its IP
32     address(es), subnet masks, and so forth.</para>
33 @y
34     <para>
35     どのネットワークインターフェースが起動したり停止したりするかは <filename
36     class="directory">/etc/sysconfig/</filename> ディレクトリ配下のファイルの指定によります。
37     このディレクトリには、設定を行ないたい各ネットワークインターフェースに対するファイル <filename>ifconfig.xyz</filename> を準備します。
38     この<quote>xyz</quote>はネットワークカードインターフェース名 (例えば eth0 など) です。
39     このファイルにはネットワークインターフェースの属性、つまり IP アドレスやサブネットマスクなどを定義します。
40     </para>
41 @z
42
43 @x
44     <note><para>Udev may assign random Network Card Interface names
45     for some network cards such as enp2s1. If you are not sure what
46     your Network Card Interface name is, you can always run
47     <command>ip l</command> after you have booted your system. Again,
48     it is important that <filename>ifconfig.xyz</filename> is named
49     after correct Network Card Interface name (e.g.
50     <filename>ifconfig.enp2s1</filename> or
51     <filename>ifconfig.eth0</filename>) or systemd will fail to bring
52     up your network interface.</para></note>
53 @y
54     <note><para>
55     Udev はシステムの物理的な特性に従った enp2s1 などのような名称をネットワークカードインターフェースに割り当てます。
56     インタフェース名がよく分からない場合は、システム起動直後に <command>ip l</command> を実行すれば確認することができます。
57     繰り返しますが <filename>ifconfig.xyz</filename> という名称はネットワークカードインターフェースを示す正しい名称 (つまり <filename>ifconfig.enp2s1</filename> や <filename>ifconfig.eth0</filename>) としなければなりません。
58     これを行っていない場合には、systemd によるネットワークインターフェースの初期化がなされないことになります。
59     </para></note>
60 @z
61
62 @x
63     <para>The following command creates a sample <filename>ipv4</filename>
64     file for the <emphasis>eth0</emphasis> device:</para>
65 @y
66     <para>
67     以下のコマンドは <emphasis>eth0</emphasis> デバイスに対しての <filename>ipv4</filename> のサンプル設定ファイルを生成します。
68     </para>
69 @z
70
71 @x
72     <para os="var-ob">The values of these variables must be changed in every
73     file to match the proper setup.</para>
74 @y
75     <para os="var-ob">
76     各変数の値は、このような設定ファイルの個々において適切なものに書き換えてください。
77     </para>
78 @z
79
80 @x
81     <para os="var-i">The <envar>IFACE</envar> variable defines the interface
82     name, for example, eth0. It is required for all network device configuration
83     files.</para>
84 @y
85     <para os="var-i">
86     変数 <envar>IFACE</envar> はインターフェース名を定義します。
87     例えば eth0 です。
88     ネットワークデバイスの設定ファイルにはこれを必ず記述します。
89     </para>
90 @z
91
92 @x
93     <para os="var-s">The <envar>SERVICE</envar> variable defines the method used
94     for obtaining the IP address. The CLFS-Network-Scripts package has a modular
95     IP assignment format, and creating additional files in the <filename
96     class="directory">/lib/services</filename>
97     directory allows other IP assignment methods.</para>
98 @y
99     <para os="var-s">
100     変数 <envar>SERVICE</envar> は IP アドレスの取得方式を定義します。
101     CLFS ネットワークスクリプトパッケージにはモジュール化した IP アドレス割り当てフォーマットがあります。
102     <filename class="directory">/lib/services</filename> ディレクトリ内に設定ファイルを置くことで、別の IP アドレス割り当て方式を採用することもできます。
103     </para>
104 @z
105
106 @x
107     <para>The <envar>GATEWAY</envar> variable should contain the default
108     gateway IP address, if one is present. If not, then comment out the
109     variable entirely.</para>
110 @y
111     <para>
112     変数 <envar>GATEWAY</envar> はデフォルトゲートウェイが存在する場合に、その IP アドレスを設定します。
113     存在しない場合はこの変数設定全体をコメントにしてください。
114     </para>
115 @z
116
117 @x
118     <para>The <envar>PREFIX</envar> variable needs to contain the number of
119     bits used in the subnet. Each octet in an IP address is 8 bits. If the
120     subnet's netmask is 255.255.255.0, then it is using the first three octets
121     (24 bits) to specify the network number. If the netmask is 255.255.255.240,
122     it would be using the first 28 bits.  Prefixes longer than 24 bits are
123     commonly used by DSL and cable-based Internet Service Providers (ISPs).
124     In this example (PREFIX=24), the netmask is 255.255.255.0. Adjust the
125     <envar>PREFIX</envar> variable according to your specific subnet.</para>
126 @y
127     <para>
128     変数 <envar>PREFIX</envar> はサブネットマスクにて用いられるビット数を指定します。
129     IP アドレスの各オクテット (octet) は 8 ビットで構成されます。
130     例えばサブネットマスクが 255.255.255.0 である場合、ネットワーク番号 (network number) を特定するには最初の三つのオクテット (24ビット) が用いられることを意味します。
131     もし 255.255.255.240 であるなら、最初の 28 ビットということになります。
132     24 ビットを超えるプレフィックスは、通常は DSL やケーブルを用いたインターネットサービスプロバイダー (Internet Service Provider; ISP) がよく利用しています。
133     上の例 (PREFIX=24) では、サブネットマスクは 255.255.255.0 となります。
134     <envar>PREFIX</envar> 変数の値は、ネットワーク環境に応じて変更してください。
135     </para>
136 @z
137
138 @x
139     <para>For more information see the <command>ifup</command> man page.</para>
140 @y
141     <para>
142     詳しくは <command>ifup</command> の man ページを参照してください。
143     </para>
144 @z
145
146 @x
147     <para>To configure another DHCP Interface, Follow <xref linkend="ch-network-dhcpcd"/>.</para>
148 @y
149     <para>
150     これ以外に DHCP インターフェースを設定する場合は <xref linkend="ch-network-dhcpcd"/> に進んでください。
151     </para>
152 @z
153
154 @x
155     <title>Configuring the Network Interface at boot</title>
156 @y
157     <title>ネットワークインターフェースの起動時設定</title>
158 @z
159
160 @x
161     <para>Enabling of the Network Interface configuration is
162     done per interface. To enable Network Interface
163     configuration at boot, run:</para>
164 @y
165     <para>
166     ネットワークインターフェースに対する設定は各インターフェースごとに行います。
167     ネットワークインターフェースの設定を起動時に有効とするためには以下を実行します。
168     </para>
169 @z
170
171 @x
172     <para>To disable previously enabled Network Interface
173     configuration at boot, run:</para>
174 @y
175     <para>
176     逆にネットワークインターフェースの設定を起動時に無効にするには以下を実行します。
177     </para>
178 @z
179
180 @x
181     <para>To manually start the Network Interface configuration,
182     run:</para>
183 @y
184     <para>
185     ネットワークインターフェースの設定を手動で有効にするには以下を実行します。
186     </para>
187 @z
188
189 @x
190     <para>Replace eth0 with the correct Network Interface
191     name as described on the beginning of this page.</para>
192 @y
193     <para>
194     上で説明しているように eth0 の部分はネットワークインターフェース名に合わせて書き換えてください。
195     </para>
196 @z