Kettler пишет:Ну покажи сам конфиг. А как блочить я показал по маку.
Вот конфиг из сервера LTSP:
Консоль:
default-lease-time 21600;
max-lease-time 21600;
ddns-update-style none;
allow booting;
allow bootp;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.91;
option routers 192.168.0.91;
option domain-name-servers 192.168.0.91;
next-server 192.168.0.91;
option domain-name "ltsp";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-221 code 221 = text;
shared-network WORKSTATIONS {
subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.200 192.168.0.253;
use-host-decl-names on;
option log-servers 192.168.0.91;
if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
{
filename "yaboot";
option vendor-class-identifier "AAPLBSDPC";
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
}
elsif substring (option option-221, 0, 5) = "Apple"
{
filename "yaboot";
option vendor-class-identifier "AAPLBSDPC";
option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
}
elsif substring (option vendor-class-identifier, 0, 13) = "Etherboot-5.4"
{
filename "/ltsp/i386/elf.ltsp";
}
elsif substring (option vendor-class-identifier, 0, 9) = "Etherboot"
{
filename "/ltsp/i386/wraplinux-nbi.ltsp";
}
elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient"
{
filename "/ltsp/i386/pxelinux.0";
}
else
{
filename "/ltsp/i386/wraplinux-nbi.ltsp";
}
if binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-3-93" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-5-2" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-27" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-95" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-d-93" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-11-24" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-14-51" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-30-65" or
binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-50-E4"
{
option root-path "192.168.0.91:/opt/ltsp/ppc";
} else {
option root-path "192.168.0.91:/opt/ltsp/i386";
}
}
}
а вот с fedora 12
Консоль:
ddns-updates on;
ddns-update-style interim;
log-facility local7;
use-host-decl-names true;
ignore client-updates;
option domain-name "ngdbnet.local";
option domain-name-servers 192.168.0.99;
option subnet-mask 255.255.255.0;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret ************;
};
zone NGDBNET.LOCAL. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 0.168.192.IN-ADDR.ARPA. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.102 192.168.0.150;
option routers 192.168.0.99;
}