Computer/Linux/Vine/5/Install/tftp-server
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Computer/Linux/Vine/5/Install]]
*tftp サーバの構築 [#ec14a697]
LAN 内で構築し,インストールを行うたびごとにそれぞれのサ...
**必要なサービス [#k8864fe3]
-dhcpd
-tftp-server
-nfs(など)
**必要なパッケージ [#ne0ee064]
apt-get install などを用いて導入しておきます.
-dhcp
-tftp-server
-(tftp-client)
-ntf-utils
-syslinux
**nfs サーバの構築 [#qdbef6f5]
Vine Linux 5.0 インストール用 CD, DVD などをマウントしま...
# mount -t iso9660 /dev/cdrom /mnt/cdrom
/etc/exports に以下の内容を追記します.
/mnt/cdrom -(ro)
nfs サーバを起動します.
# service nfs start
**tftp サーバの構築 [#wfb2afe8]
次の内容で /etc/xinetd.d/tftp ファイルを作成します.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
}
これで
# service xinetd start
とすると tftpd が起動します.xinetd の起動時に tftpd が起...
**/tftpboot ディレクトリ以下の作成 [#ofa92a49]
tftp サーバの使うディレクトリを作成し,その下に Linux イ...
# mkdir -p /tftpboot/linux-install/pxelinux.cfg
Vine Linux インストール CD(など)に含まれる PXE ブート用...
# cp /mnt/cdrom/images/pxeboot/- /tftpboot/linux-install
syslinux パッケージに含まれる pxelinux.0 ファイルを同じと...
# cp pxelinux.0 /tftpboot/linux-install
起動設定用のファイル(/tftpboot/linux-install/pxelinux.cf...
default VineLinux5Network
label VineLinux5Network
kernel vmlinuz
append text initrd=initrd.img vga=0x303
インストール CD の isolinux/isolinux.cfg ファイルの text ...
**tftp サーバの稼働確認 [#dc93372c]
必要なら稼働確認を行います.例えば /tftpboot/test.txt フ...
tftp-client がインストールされていれば,tftp サーバの稼働...
$ tftp localhost
tftp> get test.txt
tftp> quit
カレントディレクトリに test.txt ができており,内容が同じ...
**dhcp サーバの構築 [#q123b1e0]
/etc/dhcp/dhcpd.conf ファイルを編集します.
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option time-offset 54000; # Eastern...
range dynamic-bootp 192.168.1.64 192.168.0.70;
filename "linux-install/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
}
range dynamic-bootp のところに,インストールするマシンに...
**iptables の設定 [#z73f7522]
次のサービスへのアクセスを可能にするために,いくつかのポ...
,サービス,ポート,tcp/udp
,nfs,-,tcp/udp
,tftp,69,udp
,dhcp,67,udp
nfs はいくつもの(不定の)ポートを使用するので,LAN 内が...
# service iptables stop
終了行:
[[Computer/Linux/Vine/5/Install]]
*tftp サーバの構築 [#ec14a697]
LAN 内で構築し,インストールを行うたびごとにそれぞれのサ...
**必要なサービス [#k8864fe3]
-dhcpd
-tftp-server
-nfs(など)
**必要なパッケージ [#ne0ee064]
apt-get install などを用いて導入しておきます.
-dhcp
-tftp-server
-(tftp-client)
-ntf-utils
-syslinux
**nfs サーバの構築 [#qdbef6f5]
Vine Linux 5.0 インストール用 CD, DVD などをマウントしま...
# mount -t iso9660 /dev/cdrom /mnt/cdrom
/etc/exports に以下の内容を追記します.
/mnt/cdrom -(ro)
nfs サーバを起動します.
# service nfs start
**tftp サーバの構築 [#wfb2afe8]
次の内容で /etc/xinetd.d/tftp ファイルを作成します.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
}
これで
# service xinetd start
とすると tftpd が起動します.xinetd の起動時に tftpd が起...
**/tftpboot ディレクトリ以下の作成 [#ofa92a49]
tftp サーバの使うディレクトリを作成し,その下に Linux イ...
# mkdir -p /tftpboot/linux-install/pxelinux.cfg
Vine Linux インストール CD(など)に含まれる PXE ブート用...
# cp /mnt/cdrom/images/pxeboot/- /tftpboot/linux-install
syslinux パッケージに含まれる pxelinux.0 ファイルを同じと...
# cp pxelinux.0 /tftpboot/linux-install
起動設定用のファイル(/tftpboot/linux-install/pxelinux.cf...
default VineLinux5Network
label VineLinux5Network
kernel vmlinuz
append text initrd=initrd.img vga=0x303
インストール CD の isolinux/isolinux.cfg ファイルの text ...
**tftp サーバの稼働確認 [#dc93372c]
必要なら稼働確認を行います.例えば /tftpboot/test.txt フ...
tftp-client がインストールされていれば,tftp サーバの稼働...
$ tftp localhost
tftp> get test.txt
tftp> quit
カレントディレクトリに test.txt ができており,内容が同じ...
**dhcp サーバの構築 [#q123b1e0]
/etc/dhcp/dhcpd.conf ファイルを編集します.
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option time-offset 54000; # Eastern...
range dynamic-bootp 192.168.1.64 192.168.0.70;
filename "linux-install/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
}
range dynamic-bootp のところに,インストールするマシンに...
**iptables の設定 [#z73f7522]
次のサービスへのアクセスを可能にするために,いくつかのポ...
,サービス,ポート,tcp/udp
,nfs,-,tcp/udp
,tftp,69,udp
,dhcp,67,udp
nfs はいくつもの(不定の)ポートを使用するので,LAN 内が...
# service iptables stop
ページ名: