タロ兵衛のインストール日誌

2011/02/05 12:16 - 00154-2 - カテゴリ: 非公開

ネットブート - シンプルなpxeの互換性のあるDHCPとTFTPサーバ

ネットブートがこれ一式で済むなら便利でよいが、ソースが汚すぎる…

http://www.brokestream.com/netboot.html


ネットブート - シンプルなpxeの互換性のあるDHCPとTFTPサーバ

With netboot you could easily bootstrap ubuntu or debian netinstaller.ネットブートを使用すると簡単にubuntuかのdebian netinstallerをブートストラップすることができます。 Or assign address to network device like ILO to configure it.またはそれを構成するILOのようなネットワークデバイスにアドレスを割り当てることができます。 Very simple in use and need almost zero configuration.非常に使用シンプルでほぼゼロに設定する必要があります。 I always hated dhcpd and tftp-ha.私はいつも嫌いのtftp - haのdhcpdです。

Download: netboot.cダウンロード: netboot.c
To build it: gcc -o netboot netboot.cそれを構築するには:gccのの- o netbootのnetboot.c

Github: http://github.com/ITikhonov/netbootギットハブ: http://github.com/ITikhonov/netboot

For looking who is asking for boot:探している誰のためのブートを求めています:

kef@flash:~$ sudo ./netboot KEF社@フラッシュ:〜$ sudoを/ netbootの。
request 1 from 00-e0-91-02-9e-24 () 00 - e0は- 91 - 02 - 9e - 24(からの要求1)

If you are lucky it will show hostname in parens.運がよければ、それは括弧内のホスト名が表示されます。

To boot it type:ブートするように入力します:

kef@flash:~$ sudo ./netboot 192.168.0.255 192.168.0.1 192.168.0.55 00-e0-91-02-9e-24 KEF社@フラッシュ:〜$ sudoを/ netbootの192.168.0.255 192.168.0.1 192.168.0.55 00 - e0は- 91 - 02 - 9e - 24。
mac pattern:00 e0 91 02 9e 24 Macのパターン:00 e0は91 02 9e 24
request 1 from 00-e0-91-02-9e-24 () 00 - e0は- 91 - 02 - 9e - 24(からの要求1)
matched一致
request 3 from 00-e0-91-02-9e-24 () 00 - e0は- 91 - 02 - 9e - 24(からの要求3)
matched一致
rrq pxelinux.0 RRQをpxelinux.0を
rrq pxelinux.0 RRQをpxelinux.0を
end最後に

192.168.0.255 is a broadcast address. 192.168.0.255は、アドレスされるブロードキャスト。 (Bcast of ifconfig output) (ifconfigコマンドの出力Bcast)

192.168.0.1 is an address of this interface. 192.168.0.1は、インターフェイスのこのアドレスです。 (inet addr) (inetアドレス)

192.168.0.55 is an address offered to client. 192.168.0.55は、クライアントが提供するアドレスです。

00-e0-91-02-9e-24 is a mac address of client to bootstrap. 00 - e0は- 91 - 02 - 9e - 24は、ブートストラップのクライアントにアドレスmacです。 You could type last few digits only and use any separator between them (except whitespace).を入力するだけで数桁続くことが、それら(空白を除く)の間の任意の区切り文字を使用しています。

Bootfile is hardcoded to pxelinux.0 .ブートファイルは、pxelinux.0をしてハードコードされています。 You could put any file under this name.あなたはこの名前の下で任意のファイルを置くことができます。 It will use current directory for serving tftp requests.これは、TFTP要求を提供するための現在のディレクトリを使用します。

Both dhcp and tftp implementations are simplified.両方のDHCPとTFTPの実装が簡素化されます。 For example, tftp can not serve more then one file at time.たとえば、tftpは同時に複数して一つのファイルに兼ね仕えることはできない。 It has zero security, use it in safe environment only.それが唯一の安全な環境で使用して、ゼロのセキュリティを持っています。

ChangeLog: ChangeLog:変更

2008-05-02: show dhcp option 12 hostname if exists 2008年5月2日:12ホスト名が存在する場合は、show dhcpオプション

2009-12-02: fixed hanging on nonimplemented options. 2009年12月2日:nonimplementedオプションの固定ぶら下がっている。 Thanks to Ian Jeffray for spotting.スポッティングイアンJeffrayに感謝します。

2010-01-19: now works on big-endian (ARM for example) cpus. 2010年1月19日:今ビッグエンディアン(アームなど)のCPU上で動作します。 Thanks to Costin Raducanu for testing.テストのためにコスティンRaducanuに感謝します。

( 編集 / 削除 管理者専用 )

コメントはまだありません

コメントの投稿

タイトル
お名前(ハンドル)
本文
問題:うらしま太郎が助けた動物は?(ひらがな)
パスワード
次回同じハンドル名で投稿するときに使います。必ずメモして下さい(再発行や此方から通知することはできません)