Пул для влана?? У меня настроены пулы для пользователей с опр. портом и свитчем. Пример конфига:
Код:
lease-file-name "/var/db/dhcpd/dhcpd.leases";
option domain-name-servers 89.251.66.7, 89.251.66.5;
option subnet-mask 255.255.255.0;
server-identifier 10.1.0.10;
local-address 10.1.0.10;
default-lease-time 21600;
max-lease-time 43200;
authoritative;
ddns-update-style none;
log-facility local7;
ignore client-updates;
if exists agent.circuit-id {
log ( info, concat(
"SW-ID: ",
binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6)),
", port: ", binary-to-ascii(10, 8, "/", suffix(option agent.circuit-id, 2)))
);
}
class "1"{
match if binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6))="0:17:9a:79:98:e3"
and binary-to-ascii(10, 8, "/", suffix(option agent.circuit-id, 2))="0/2";
}
class "2"{
match if binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6))="0:17:9a:79:98:e3"
and binary-to-ascii(10, 8, "/", suffix(option agent.circuit-id, 2))="0/3";
}
class "3"{
match if binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6))="0:17:9a:79:98:e3"
and binary-to-ascii(10, 8, "/", suffix(option agent.circuit-id, 2))="0/4";
}
class "4"{
match if binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6))="0:17:9a:79:98:e3"
and binary-to-ascii(10, 8, "/", suffix(option agent.circuit-id, 2))="0/10";
}
#class "any"{
#match if not exists agent.circuit-id;
#}
subnet (белый адрес) netmask 255.255.255.0 {
option routers ---.---.---.---;
option subnet-mask 255.255.255.0;
option domain-name-servers ---.---.---.---;
pool {
range (один белый адрес);
allow members of "1";
}
вот. на сервее есть только интерфейс сис. влана.
прямая связь с сервером есть