2008年1月24日木曜日

bootp+tftpd

ひっさしぶりにOpenBlocks266アップデートしようとしたらすっかり忘れてら。

aptitude install bootp tftpd

で、/etc/bootptab を編集して...

obs266:\
:ht=ether:\
:sa=192.168.0.1:\
:ha=000A85018CA3:\
:ip=192.168.0.254:\
:sm=255.255.255.0:\
:bs=auto:\
:hd=/srv/tftp:\
:bf=zImage.initrd.treeboot-product:\

ファイルを /srv/tftp/zImage.initrd.treeboot-product に用意して、

/usr/sbin/arp -s 192.168.0.254 00:0A:85:01:8C:A3
で、ARPを固定で登録して、

/usr/sbin/bootpd -d4

とかで、bootpdを立ち上げといて、OpenBlcksの電源をOn!

※ tftpのルートディレクトリを変える場合は、
bootptabの hd= と /etc/inetd.conf の tftp の行を変えて、
/etc/init.d/openbsd-inetd restart
でおけ。

0 件のコメント: