# Diese Datei nach /etc/inet/dhcpd4.conf kopieren # # pkg install service/network/dhcp/isc-dhcp # grep -q local1 /etc/syslog.conf || \ # + gsed -i -e '/^\*.emerg/ a\local1.notice /var/log/dhcp.log' /etc/syslog.conf # ^_ das musz ein tab sein # + touch /var/log/dhcp.log # svcadm restart system/system-log:default # svcadm enable dhcp/server:ipv4 ddns-update-style none; ddns-updates off; authoritative; log-facility local1; # 3 hours default lease time default-lease-time 10800; # 6 hours max lease time max-lease-time 21600; option pxe-system-type code 93 = unsigned integer 16; option pxe-interface-id code 94 = { unsigned integer 8, unsigned integer 8, unsigned integer 8}; option pxe-client-id code 97 = { unsigned integer 8, string }; option etherboot-magic code 128 = string; option vlan-id code 132 = text; option proxy-auto-config code 252 = text; # PXELINUX options: not defined by RFC yet option space PXE; option PXE.pxelinux-magic code 208 = string; option PXE.loader-configfile code 209 = text; option PXE.loader-pathprefix code 210 = text; option PXE.loader-reboottime code 211 = unsigned integer 32; # Sparc DHCP options option space SUNW; option SUNW.root-mount-options code 1 = text; option SUNW.root-server-ip-address code 2 = ip-address; option SUNW.root-server-hostname code 3 = text; option SUNW.root-path-name code 4 = text; option SUNW.swap-server-ip-address code 5 = ip-address; option SUNW.swap-file-path code 6 = text; option SUNW.boot-file-path code 7 = text; option SUNW.posix-timezone-string code 8 = text; option SUNW.boot-read-size code 9 = unsigned integer 16; option SUNW.install-server-ip-address code 10 = ip-address; option SUNW.install-server-hostname code 11 = text; option SUNW.install-path code 12 = text; option SUNW.sysid-config-file-server code 13 = text; option SUNW.JumpStart-server code 14 = text; option SUNW.terminal-name code 15 = text; # Option 43 = 01 04 31 41 50 43 # ^^^^^^^^^^^ == cookie #option space APC; #option APC.cookie-offer code 43 = text; ############################################################## # DEFAULTS ############################################################## server-name "141.44.24.61"; # server, which has boot loader files - required for x86 jumpstart # aka BootSrvA 10.0.0.1 next-server 141.44.24.61; option ntp-servers ntp.cs.uni-magdeburg.de; option subnet-mask 255.255.255.0; option domain-name "cs.uni-magdeburg.de"; option domain-name-servers 141.44.21.1, 141.44.24.32; deny unknown-clients; # Microsoft clients class "MSFT" { match if substring(option vendor-class-identifier, 0, 4) = "MSFT"; # Die Windows-Kisten koennen einem echt auf den Sack gehen: option proxy-auto-config "\n\000"; #option proxy-auto-config "http://www/wpad.dat\n"; # force broadcast address (28=0x1c da Winbloed die broadcast Adresse nur von # der IP-Adresse ableitet und die Netzmaske dabei vollkommen ignoriert. # Ergo verordnen wir das Senden von BroadcastAddress, LeaseTime, wpad, # auch wenn der client nicht danach fragt. option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list, 1c, 33, fc); } class "sun-clients" { match if substring (option vendor-class-identifier, 0, 4) = "SUNW"; vendor-option-space SUNW; option SUNW.install-server-ip-address 141.44.24.61; } group { use-host-decl-names true; option domain-name "iks.cs.ovgu.de"; Include "/local/ai/profiles/dhcpd4-iks.inc"; } group { use-host-decl-names true; option domain-name "iks.cs.ovgu.de"; option domain-name-servers 10.0.0.1; option ntp-servers 10.0.0.1; option log-servers 10.0.0.1; option smtp-server 10.0.0.1; server-name "10.0.0.1"; next-server 10.0.0.1; Include "/local/ai/profiles/dhcpd4-iks-manage.inc"; } group { use-host-decl-names true; option ntp-servers luxator.cs.uni-magdeburg.de; option domain-name-servers 141.44.23.1, 141.44.21.1; Include "/local/ai/profiles/dhcpd4-isg.inc"; } group { use-host-decl-names true; option domain-name-servers 141.44.26.57, 141.44.21.1; Include "/local/ai/profiles/dhcpd4-iti.inc"; } group { use-host-decl-names true; option ntp-servers ntps2-0.cs.uni-magdeburg.de; Include "/local/ai/profiles/dhcpd4-ivs.inc"; } group { use-host-decl-names true; option nis-domain "fin.cs.uni-magdeburg.de"; Include "/local/ai/profiles/dhcpd4-fin.inc"; } subnet 10.0.0.0 netmask 255.255.255.0 { allow unknown-clients; range 10.0.0.209 10.0.0.239; option broadcast-address 10.0.0.255; option routers 10.0.0.200; } subnet 141.44.21.0 netmask 255.255.255.0 { #allow unknown-clients; #range 141.44.21.209 141.44.21.239; option broadcast-address 141.44.21.255; option routers 141.44.21.200; } subnet 141.44.22.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.22.200; } subnet 141.44.23.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.23.200; } subnet 141.44.24.0 netmask 255.255.255.0 { #allow unknown-clients; #range 141.44.24.209 141.44.24.239; option broadcast-address 141.44.24.255; option routers 141.44.24.200; option ntp-servers 141.44.24.1; } subnet 141.44.25.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.25.200; } subnet 141.44.26.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.26.200; } subnet 141.44.27.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.27.200; } subnet 141.44.28.0 netmask 255.255.255.0 { #allow unknown-clients; #range 141.44.28.209 141.44.28.239; option broadcast-address 141.44.28.255; option routers 141.44.28.200; option ntp-servers 141.44.28.1; } subnet 141.44.29.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.29.200; } subnet 141.44.30.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.30.200; } subnet 141.44.32.0 netmask 255.255.255.0 { option broadcast-address 141.44.21.255; option routers 141.44.32.200; } class "PXEBoot" { match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient"); filename "default-i386/boot/grub/pxegrub"; } class "SPARC" { match if ( substring (option vendor-class-identifier, 0, 5) = "SUNW." ) and not (substring(option vendor-class-identifier, 0, 9) = "PXEClient"); filename "http://141.44.24.61:5555/cgi-bin/wanboot-cgi"; } host 0025900AD840 { hardware ethernet 00:25:90:0A:D8:40; filename "010025900AD840"; }