# # /etc/dhcpd.conf # 2001/6/15 oka? hada? renewal # Tue,12 Aug,2003 ghal for New TK Server # Wed,10 Dec,2003 - Tue,16 Dec,2003 ghal FreeBSD NetworkBoot Support # Wed,14 Jan,2004 - Thr,15 Jan,2004 ghal Linux NetworkBoot Support # Mon,26 Jan,2004 ghal add tetsuro # - Thr,11 Mar,2004 hada? Cartrobot NetworkBoot ? # Wed,17 Mar,2004 - Sat,27 Mar,2004 ghal New InternalServer # Mon,26 Apr,2004 hada? for OmniRobot? # Feb,30 Apr,2004 hada for Denkiisu # Sat,15 May,2004 ghal New IP assignment rule # - Thr,11 Nov,2004 hada? Cartrobot? # Mon,10 Jan,2005 ghal default-dhcpd -> isc_dhcpd # Thr,03 Mar,2005 ghal add FreeBSD-5.3-RELEASE-amd64 network-boot-install # Wed,30 Mar,2005 ghal add FreeBSD-5.3-RELEASE-amd64 network-boot-install # Fri,08 Apr,2005 ghal fix FreeBSD-4.11-STABLE, FreeBSD-5.3-RELEASE-amd64 # Wed,13 Apr,2005 ghal fix FreeBSD-4.11-STABLE, FreeBSD-5.3-RELEASE-amd64 # Tue,11 Oct,2005 abet add Linux entry for RedCart # Thr,20 Oct,2005 ghal add pxelinux entry # Wed,02 Nov,2005 ghal tune pxelinux entry # Mon,19 Dec,2005 ghal add k # Wed,04 Jan,2005 ghal "option host-name" は、純粋にホスト名であって、FQDN では無かった。 # 省略しても host * {} が使われるので、省略できる。 # 原則として、fixed-address を使う場合はそれと一致させる。 # Fri,20 Oct,2006 ghal tune lease-time # Fri,22 Dec,2006 ghal add k-2 # Wed,17 Jan,2007 ghal add k series # Thu,15 Feb,2007 ghal add maru/tofu # Fri,16 Feb,2007 ghal tune tftp directory # Mon,05 Mar,2007 ghal fix pxelinux and etherboot # Fri,09 Nov,2007 ghal Fixated, AirStation. # Thu,29 Nov,2007 ghal Del. u2 # Wed,12 Dec,2007 ghal Change tofu1b by repairing. # # # 192.168.3.0/25 (1-127) 127 未定 # 192.168.3.128/26 (128-191) 64 Normal DHCP # 192.168.3.192/27 (192-223) 32 NetworkBoot(試験用) # 192.168.3.224/27 (224-254) 32 汎用試験用 # 長期運用するのに、上記「NetworkBoot(試験用)」のアドレスを # 割り当てないように。(→ fixed-address の項目) # # # option root-path には、 # - が入っているディレクトリ名は使えない # 長過ぎると駄目 # の、どちらかの制限があるらしい。思いっきりはまった。 # # allow/deny allow unknown-clients; # 未登録 MAC からの DHCP を許可 allow bootp; # bootp 許可 allow booting; # bootp 許可 # DHCP server string server-identifier yggdrasill.tk.example.private; server-name "yggdrasill"; # default DNS option domain-name-servers 192.168.0.2; option domain-name "tk.example.private"; # DDNS ddns-update-style interim; ignore client-updates; # options for ISC-DHCPD option bpbatch-argment code 135 = text; option freebsd-root-opts code 131 = text; option freebsd-swap-path code 128 = text; option freebsd-swap-opts code 130 = text; option etherboot-signature code 128 = string; option kernel-parameters code 129 = text; option kernel-ethernet-interface code 130 = text; # tk-lab private shared-network TKNet { # DDNS authoritative; ignore client-updates; include "/var/named/etc/namedb/key/ddns.key"; zone tk.example.private. { primary 127.0.0.1; key DDNS; } zone 168.192.in-addr.arpa. { primary 127.0.0.1; key DDNS; } #default-lease-time 600; # 10min #max-lease-time 600; # 10min #max-lease-time 86400; # 1day #max-lease-time 604800; # 1week default-lease-time 2592000; # 1month max-lease-time 2592000; # 1month use-host-decl-names on; class "vendor-classes" { match option vendor-class-identifier; } subnet 192.168.0.0 netmask 255.255.248.0 { range 192.168.3.128 192.168.3.192; # 192.168.3.128/26 option subnet-mask 255.255.248.0; option broadcast-address 192.168.7.255; # Some Servers option routers 192.168.0.1; option tftp-server-name yggdrasill; #option time-servers ntp.tk.example.private; option ntp-servers ntp.tk.example.private; option lpr-servers lp9600.example.private; # DNS option domain-name-servers 192.168.0.2; #option domain-name "tk.example.private"; option domain-name "tk.example.private"; option fqdn.fqdn "tk.example.private"; # NIS option nis-domain tknet; option nis-servers nis.tk.example.private; option nisplus-domain tknet; option nisplus-servers nis.tk.example.private; # NETBIOS option netbios-name-servers u2.tk.example.private; option netbios-dd-server u2.tk.example.private; option netbios-node-type 4; # 1: b-node:ブロードキャストノード # 2: p-node:Peer to Peerノード(WINSを使用) # 4: m-node:ミックスノード(ブロードキャストで見つからない場合にWINSを使用する) # 8: h-node:ハイブリッドノード(WINSで見つからない場合に,ブロードキャストを使用する) # default NetworkBoot class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; option vendor-class-identifier "PXEClient"; vendor-option-space PXE; option vendor-encapsulated-options 01:04:00:00:00:00; next-server yggdrasill.tk.example.private; # tftp/nfs server filename "debian/pxelinux.0"; } class "etherboot" { match if substring (option vendor-class-identifier, 0, 9) = "Etherboot"; option vendor-class-identifier "Etherboot"; vendor-option-space EB; option etherboot-signature E4:45:74:68:00:00; option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff; next-server yggdrasill.tk.example.private; # tftp/nfs server filename "memtest86.nbi"; # memtest86. Not memtest86+ #filename "freedos.img.nbi"; #filename "drdos.img.nbi"; } group { # for Fixed Address DHCP client # host spartan { # for Only TEST # hardware ethernet xx:xx:xx:xx:xx:xx; # fixed-address exp225; # option host-name "exp225"; # } } # for Fixed Address DHCP client group { # for Linux bpbatch Network Boot next-server yggdrasill.tk.example.private; # tftp/nfs server filename "bpb/bpbatch"; # option option-135 "-i"; # for Interactive Mode, Default-DHCPD option bpbatch-argment "-i"; # for Interactive Mode, ISC-DHCPD option root-path "192.168.0.2:/usr3/diskless/Linux"; host carbonara { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address nb195; # option option-135 "linux_c400"; # for Auto Mode, Default-DHCPD option bpbatch-argment "linux_c400"; # for Auto Mode, ISC-DHCPD option host-name "nb195"; } } # for Linux bpbatch Network Boot group { # for Network Boot with Autodetect either pxelinux or etherboot if substring (option vendor-class-identifier, 0, 9) = "PXEClient" { option vendor-class-identifier "PXEClient"; vendor-option-space PXE; option vendor-encapsulated-options 01:04:00:00:00:00; next-server yggdrasill.tk.example.private; # tftp/nfs server filename "debian/pxelinux.0"; option root-path "192.168.0.2:/usr3/diskless/debian"; # *** NOT EXACTRY *** } else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { option vendor-class-identifier "Etherboot"; vendor-option-space EB; option etherboot-signature E4:45:74:68:00:00; option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff; next-server yggdrasill.tk.example.private; # tftp/nfs server option root-path "192.168.0.2:/usr3/diskless/debian-3.1"; # *** NOT EXACTRY *** option kernel-ethernet-interface "dhcp"; #filename "debian/vmlinuz-2.6.10-penm-adeos.nbi"; #option kernel-parameters "ramdisk_size=65536 initrd=initrd.img-2.6.10-penm-adeos-pxe ip=dhcp root=/dev/nfs nfsroot=192.168.0.2:/usr3/diskless/debian-3.1,noatime,nfsvers=3,rsize=8192,wsize=8192,nolock,timeo=3,retrans=4,retry=1,fg,soft,intr,udp"; filename "debian/vmlinuz-2.6.10-penm-adeos-ramroot.nbi"; option kernel-parameters "ramdisk_size=131072 initrd=initrd.img-2.6.10-penm-adeos-ramroot ip=dhcp root=/dev/ram0"; } host peperoncino { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address peperoncino; } } # for Network Boot with Autodetect either pxelinux or etherboot group { # for Linux Network Boot by GRUB host fivemillion { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address nb209; option host-name "nb209"; } } # for Linux Network Boot by GRUB group { # for FreeBSD 6.x(i386) Network Boot #option dhcp-class-identifier "PXEClient"; # for Default-DHCPD? option vendor-class-identifier "PXEClient"; # for ISC-DHCPD option vendor-encapsulated-options 01:04:00:00:00:00; next-server yggdrasill.tk.example.private; # tftp/nfs server filename "FreeBSD/pxeboot.FreeBSD6"; option root-path "192.168.0.2:/usr3/diskless/FreeBSD6"; option freebsd-root-opts "nfsv3,tcp,hard"; # for ISC-DHCPD # option freebsd-swap-opts "nfsv3,udp,hard"; # for ISC-DHCPD # option freebsd-swap-path "/usr3/diskless/swap.193"; # for ISC-DHCPD host kitano { hardware ethernet xx:xx:xx:xx:xx:xx; } } # for FreeBSD 4.x(i386) Network Boot group { # for FreeBSD 6.x(amd64) Network Boot #option dhcp-class-identifier "PXEClient"; # for Default-DHCPD? option vendor-class-identifier "PXEClient"; # for ISC-DHCPD option vendor-encapsulated-options 01:04:00:00:00:00; next-server yggdrasill.tk.example.private; # tftp/nfs server filename "FreeBSD/pxeboot.FreeBSD6a"; # amd64 option root-path "/usr3/diskless/FreeBSD6a"; # amd64 option freebsd-root-opts "nfsv3,tcp,hard"; # for ISC-DHCPD # option freebsd-swap-opts "nfsv3,udp,hard"; # for ISC-DHCPD # option freebsd-swap-path "/usr3/diskless/swap.193"; # for ISC-DHCPD host k8 { hardware ethernet xx:xx:xx:xx:xx:xx; } } # for FreeBSD 6.x(amd64) Network Boot } # subnet } # shared-network # [ End of File ]