переработал конфиг дхцп
теперь так:
dhcpd.conf
#option domain-name "xz.ua";
#option interface-mtu 1500;
option domain-name-servers 10.100.10.1;
#option subnet-mask 255.255.255.0;
lease-file-name "/var/log/dhcpd.leases";
log-facility local7;
default-lease-time 1200;
max-lease-time 2400;
ddns-update-style none;
#local-address 192.168.2.1;
#authoritative;
include "/usr/local/etc/dhcp/sw-170.conf";
if exists agent.circuit-id {
log(info, concat("Lease"," IP ",binary-to-ascii(10, 8,".",leased-address),
" MAC ",binary-to-ascii(16,8,":",substring(hardware,1, 6)),
" port ",binary-to-ascii(10,16, "",substring(option agent.circuit-id, 4, 2)),
" VLAN ",binary-to-ascii(10, 16,"",substring(option agent.circuit-id, 2, 2))
)
);
}
###############################################################################################################
#
shared-network XZ {
#############################################################################
subnet 192.168.2.0 netmask 255.255.255.0 {
allow unknown-clients;
}
#############################################################################
subnet 10.100.10.0 netmask 255.255.255.0 {
option broadcast-address 10.100.10.255;
option domain-name-servers 10.100.10.1;
option routers 10.100.10.1;
########################################################
pool { range 10.100.10.101; allow members of "sw170-1";}
pool { range 10.100.10.102; allow members of "sw170-2";}
pool { range 10.100.10.103; allow members of "sw170-3";}
pool { range 10.100.10.104; allow members of "sw170-4";}
pool { range 10.100.10.105; allow members of "sw170-5";}
pool { range 10.100.10.106; allow members of "sw170-6";}
pool { range 10.100.10.107; allow members of "sw170-7";}
pool { range 10.100.10.108; allow members of "sw170-8";}
pool { range 10.100.10.109; allow members of "sw170-9";}
pool { range 10.100.10.110; allow members of "sw170-10";}
pool { range 10.100.10.111; allow members of "sw170-11";}
pool { range 10.100.10.112; allow members of "sw170-12";}
pool { range 10.100.10.113; allow members of "sw170-13";}
pool { range 10.100.10.114; allow members of "sw170-14";}
pool { range 10.100.10.115; allow members of "sw170-15";}
pool { range 10.100.10.116; allow members of "sw170-16";}
pool { range 10.100.10.117; allow members of "sw170-17";}
pool { ra2nge 10.100.10.118; allow members of "sw170-18";}
pool { range 10.100.10.119; allow members of "sw170-19";}
pool { range 10.100.10.120; allow members of "sw170-20";}
pool { range 10.100.10.121; allow members of "sw170-21";}
pool { range 10.100.10.122; allow members of "sw170-22";}
pool { range 10.100.10.123; allow members of "sw170-23";}
pool { range 10.100.10.124; allow members of "sw170-24";}
}
}
sw-170.conf
#Device Type : DES-1210-28 Fast Ethernet Switch
#MAC Address : 1C-AF-F7-C9-31-59
#IP Address : 192.168.2.170 (Manual)
#VLAN Name :
#Subnet Mask : 255.255.255.0
#Default Gateway : 192.168.2.1
#Boot PROM Version : 1.00.002
#Firmware Version : 5.20.B005
#Hardware Version : A1
#System Name :sw-170
class "sw170-1" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "1";
}
class "sw170-2" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "2";
}
class "sw170-3" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "3";
}
class "sw170-4" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "4";
}
class "sw170-5" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "5";
}
class "sw170-6" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "6";
}
class "sw170-7" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "7";
}
class "sw170-8" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "8";
}
class "sw170-9" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "9";
}
class "sw170-10" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "10";
}
class "sw170-11" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "11";
}
class "sw170-12" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "12";
}
class "sw170-13" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "13";
}
class "sw170-14" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "14";
}
class "sw170-15" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "15";
}
class "sw170-16" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "16";
}
class "sw170-17" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "17";
}
class "sw170-18" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "18";
}
class "sw170-19" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "19";
}
class "sw170-20" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "20";
}
class "sw170-21" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "21";
}
class "sw170-22" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "22";
}
class "sw170-23" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "23";
}
class "sw170-24" {
match if binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "1c:af:f7:c9:31:59" and binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "24";
}
таже хрень в логах
Mar 29 16:07:20 dhcpd: All rights reserved.
Mar 29 16:07:20 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 29 16:07:20 dhcpd: Wrote 0 class decls to leases file.
Mar 29 16:07:20 dhcpd: Wrote 0 leases to leases file.
Mar 29 16:07:20 dhcpd: Listening on BPF/bge1/00:17:31:23:10:61/XZnet
Mar 29 16:07:20 dhcpd: Sending on BPF/bge1/00:17:31:23:10:61/XZnet
Mar 29 16:07:20 dhcpd: Sending on Socket/fallback/fallback-net
Mar 29 16:07:27 dhcpd: DHCPDISCOVER from 00:22:15:7f:12:45 via bge1: network XZ: no free leases
Mar 29 16:08:10 last message repeated 4 times
Mar 29 16:08:18 dhcpd: DHCPDISCOVER from 00:22:15:7f:12:45 via bge1: network XZ: no free leases
Mar 29 16:16:23 last message repeated 16 times
У кого какие идеи?