Всем привет
Есть работающий конфиг dhcp сервера, по необходимости была добавлена сетевая и прописан vlan. Добавляю subnet для влана и походу отваливается основной интерфейс (fxp0), начинает сыпать ошибками DHCPDISCOVER from 90:5f:2e:d5:4d:50 via fxp0: network net: no free leases.
Пытался вручную указать кто на каком интерфейсе, тоже самое. Влан (vlan6) апи получает.конфиг DHCP
# dhcpd.conf
#allow leasequery;
#stash-agent-options=true;
##
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;
server-identifier dhcp-v.znu.edu.ua;
server-name dhcp-v;
# option definitions common to all supported networks...
option domain-name "znu.edu.ua";
option domain-name-servers uno.znu.edu.ua, duo.znu.edu.ua, iserver.znu.edu.ua;
default-lease-time 14400; # 4 h
min-lease-time 7200; # 2 h
max-lease-time 21600; # 6 h
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
ddns-update-style interim;
ddns-rev-domainname "in-addr.arpa";
ddns-domainname "znu.edu.ua";
ddns-ttl 7200;
update-static-leases on;
use-host-decl-names on;
#ignore client-updates;
allow client-updates;
deny duplicates;
#deny client-updates;
#### Autoconfig for browsers #########################
option wpad-curl code 252 = text ;
option wpad-curl "http://wpad.znu.edu.ua/wpad.dat\000" ;
option local-pac-serv code 252 = text ;
option local-pac-serv "http://proxy.znu.edu.ua/proxy.pac\000" ;
option pac-serv code 252 = text ;
option pac-serv "http://proxy.znu.edu.ua/proxy.pac\000" ;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
group {
option subnet-mask 255.255.248.0;
option routers 10.1.100.153;
option netbios-dd-server 10.1.100.2, 10.1.100.4;
option netbios-name-servers 10.1.100.2, 10.1.100.4;
option ntp-servers 10.1.100.2;
option domain-name-servers 10.1.100.2, 10.1.100.4;
option domain-name "znu.edu.ua";
# server-identifier dhcp-v.znu.edu.ua;
server-name dhcp-v;
option dhcp-server-identifier 10.1.100.9;
ddns-domainname "znu.edu.ua";
use-host-decl-names on;
host chemistry-notebook {option host-name "chemistry-notebook.znu.edu.ua";
hardware ethernet 00:1E:33:31:ED:0C; fixed-address 10.1.103.200; }
host mfu_printer_1 {option host-name "mfu_printer_1.znu.edu.ua";
hardware ethernet 00:0B:CD:71:2C:47; fixed-address 10.1.99.150; }
host konic-4p { option host-name "konic-4p.znu.edu.ua";
hardware ethernet 00:20:6b:5c:4e:af; fixed-address 10.1.98.64; }
host 2-119a { hardware ethernet ; fixed-address 10.1.99.211; }
host microsof-b85ec8{hardware ethernet 00:04:75:c0:88:f3; fixed-address 10.1.98.108; }
host 1-19-4 { option host-name "1-19-4.znu.edu.ua";
hardware ethernet 00:1c:c0:c8:e7:12; fixed-address 10.1.98.143; }
host microsof-787b35{hardware ethernet 00:04:75:d4:8f:22; fixed-address 10.1.99.197; }
}
class "eva" {
match if ( ( substring (option host-name,0,3) = "eva" ) or
( substring (option host-name,0,3) = "EVA" ) or
( substring (option host-name,0,3) = "Eva" )
);}
class "abitura" {
match if ( ( substring (option host-name,0,3) = "abo") or
( substring (option host-name,0,3) = "Abo") or
( substring (option host-name,0,3) = "ABO")
);}
class "labs" {
match if ( ( substring (option host-name,0,3) = "lab") or
( substring (option host-name,0,3) = "Lab") or
( substring (option host-name,0,3) = "LAB")
);}
class "pasha" {
match if ( ( substring (option host-name,0,8) = "microsof") or
( substring (option host-name,0,8) = "MICROSOF")
);}
class "telephones"{
match if ( ( substring (option host-name,0,7) = "android") or
( substring (option host-name,0,5) = "iPhone") or
( substring (option host-name,0,5) = "iphone") or
( substring (option host-name,0,7) = "Android") or
( substring (option host-name,0,4) = "iPad")
);}
shared-network net {
update-static-leases on;
ddns-updates on;
option netbios-node-type 8;
# ddns-rev-domainname "1.10.in-addr.arpa";
ddns-rev-domainname "in-addr.arpa";
subnet 10.1.96.0 netmask 255.255.248.0 {
# interface fxp0;
allow unknown-clients;
ddns-updates on;
option subnet-mask 255.255.248.0;
option routers 10.1.100.153;
option netbios-dd-server 10.1.100.2, 10.1.100.4;
option netbios-name-servers 10.1.100.2, 10.1.100.4;
option ntp-servers 10.1.100.2;
option domain-name-servers 10.1.100.2, 10.1.100.4;
option domain-name "znu.edu.ua";
option dhcp-server-identifier 10.1.100.9;
server-name dhcp-v;
ddns-domainname "znu.edu.ua"; }
pool{ range 10.1.97.0 10.1.97.254;
allow members of "telephones";
deny unknown-clients;
deny members of "labs";
deny members of "abitura";
deny members of "eva";
deny members of "pasha";}
pool{ range 10.1.98.0 10.1.99.254;
use-host-decl-names on;
allow unknown-clients;
deny members of "telephones";
deny members of "labs";
deny members of "abitura";
deny members of "eva";
deny members of "pasha";}
pool{ range 10.1.103.104 10.1.103.104;
allow members of "eva";
deny members of "telephones";
deny members of "labs";
deny members of "abitura";
deny members of "pasha"; }
pool{ range 10.1.101.0 10.1.102.254;
use-host-decl-names on;
allow members of "labs";
deny members of "telephones";
deny members of "abitura";
deny members of "eva";
deny members of "pasha";}
subnet 10.1.8.0 netmask 255.255.248.0 {
# interface fxp0;
allow unknown-clients;
ddns-updates on;
option subnet-mask 255.255.248.0;
option routers 10.1.10.153;
option netbios-dd-server 10.1.10.2, 10.1.100.4;
option netbios-name-servers 10.1.10.2, 10.1.10.4;
option ntp-servers 10.1.10.2;
option domain-name-servers 10.1.10.2, 10.1.10.4;
option domain-name "znu.edu.ua";
option dhcp-server-identifier 10.1.10.9;
server-name dhcp-v;
ddns-domainname "znu.edu.ua"; }
pool{ range 10.1.10.48 10.1.10.250;
allow members of "abitura";
deny members of "telephones";
deny members of "labs";
deny members of "eva";
deny members of "pasha";}
}#shared networks end.
#vlans subnet
subnet 10.168.8.0 netmask 255.255.252.0 {
allow unknown-clients;
# interface vlan6;
range 10.168.8.5 10.168.11.254;
ddns-updates on;
option routers 10.168.8.3;
option subnet-mask 255.255.252.0;
option netbios-dd-server 10.1.10.2, 10.1.100.4;
option netbios-name-servers 10.1.10.2, 10.1.10.4;
option ntp-servers 10.1.10.2;
option domain-name-servers 10.1.10.2, 10.1.10.4;
option domain-name "znu.edu.ua";
option dhcp-server-identifier 10.168.8.3;
server-name dhcp-v;
}
ifconfig
# ifconfig
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC>
ether 00:0e:a6:8c:29:ef
inet 10.1.100.9 netmask 0xfffff800 broadcast 10.1.103.255
inet6 fe80::20e:a6ff:fe8c:29ef%fxp0 prefixlen 64 scopeid 0x6
inet 10.1.10.9 netmask 0xfffff800 broadcast 10.1.15.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82009<RXCSUM,VLAN_MTU,WOL_MAGIC,LINKSTATE>
ether 00:04:75:99:b1:52
inet 172.16.67.1 netmask 0xffffff00 broadcast 172.16.67.255
inet6 fe80::204:75ff:fe99:b152%xl0 prefixlen 64 scopeid 0x7
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vlan6: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:04:75:99:b1:52
inet 10.168.8.3 netmask 0xfffffc00 broadcast 10.168.11.255
inet6 fe80::204:75ff:fe99:b152%vlan6 prefixlen 64 scopeid 0xa
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 6 parent interface: xl0
в чем может быть проблема?