% % This is part of CLFSja package. % % This is a CTIE change file for the original XML source of the CLFSbook. % @x @y @z @x Static Networking Configuration @y スタティックなネットワーク設定 @z @x Creating the Static Network Interface Configuration Files @y スタティックネットワークインターフェイス向け設定ファイルの生成 @z @x Which interfaces are brought up and down by the network script depends on the files and directories in the /etc/sysconfig/network-devices hierarchy. This directory should contain a sub-directory for each interface to be configured, such as ifconfig.xyz, where xyz is a network interface name. Inside this directory would be files defining the attributes to this interface, such as its IP address(es), subnet masks, and so forth. @y どのネットワークインターフェースが起動したり停止したりするかは /etc/sysconfig/network-devices ディレクトリ配下のファイルの指定によります。 このディレクトリには、設定を行ないたい各ネットワークインターフェースに対するファイル ifconfig.xyz を準備します。 このxyzはネットワークカードインターフェース名 (例えば eth0 など) です。 このファイルにはネットワークインターフェースの属性、つまり IP アドレスやサブネットマスクなどを定義します。 @z @x The following command creates a sample ipv4 file for the eth0 device: @y 以下のコマンドは eth0 デバイスに対する ipv4 ファイルのサンプルを生成するものです。 @z @x The values of these variables must be changed in every file to match the proper setup. If the ONBOOT variable is set to yes the network script will bring up the Network Interface Card (NIC) during booting of the system. If set to anything but yes the NIC will be ignored by the network script and not be brought up. @y 各変数の値は、このような設定ファイルの個々において適切なものに書き換えてください。 ONBOOT 変数をyesに設定した場合、システム起動時にネットワークスクリプトがネットワークインターフェースカード (network interface card; NIC) を起動します。 yes以外に設定すると、ネットワークスクリプトからの NIC の起動がなくなり、NIC は自動では起動しなくなります。 @z @x The SERVICE variable defines the method used for obtaining the IP address. The CLFS-Bootscripts package has a modular IP assignment format, and creating additional files in the /etc/sysconfig/network-devices/services directory allows other IP assignment methods. @y 変数 SERVICE は IP アドレスの取得方式を定義します。 CLFS Bootscripts パッケージにはモジュール化した IP アドレス割り当てフォーマットがあります。 /etc/sysconfig/network-devices/services ディレクトリ内に設定ファイルを置くことで、別の IP アドレス割り当て方式を採用することもできます。 @z @x The GATEWAY variable should contain the default gateway IP address, if one is present. If not, then comment out the variable entirely. @y 変数 GATEWAY はデフォルトゲートウェイが存在する場合に、その IP アドレスを設定します。 存在しない場合はこの変数設定全体をコメントにしてください。 @z @x The PREFIX variable needs to contain the number of bits used in the subnet. Each octet in an IP address is 8 bits. If the subnet's netmask is 255.255.255.0, then it is using the first three octets (24 bits) to specify the network number. If the netmask is 255.255.255.240, it would be using the first 28 bits. Prefixes longer than 24 bits are commonly used by DSL and cable-based Internet Service Providers (ISPs). In this example (PREFIX=24), the netmask is 255.255.255.0. Adjust the PREFIX variable according to your specific subnet. @y 変数 PREFIX はサブネットマスクにて用いられるビット数を指定します。 IP アドレスの各オクテット (octet) は 8 ビットで構成されます。 例えばサブネットマスクが 255.255.255.0 である場合、ネットワーク番号 (network number) を特定するには最初の三つのオクテット (24ビット) が用いられることを意味します。 もし 255.255.255.240 であるなら、最初の 28 ビットということになります。 24 ビットを超えるプレフィックスは、通常は DSL やケーブルを用いたインターネットサービスプロバイダー (Internet Service Provider; ISP) がよく利用しています。 上の例 (PREFIX=24) では、サブネットマスクは 255.255.255.0 となります。 PREFIX 変数の値は、ネットワーク環境に応じて変更してください。 @z @x To configure another DHCP Interface, Follow . @y これ以外に DHCP インターフェースを設定する場合は に進んでください。 @z