Установил isc-dhcp-server, в /etc/default/isc-dhcp-server прописал интерфейс INTERFACES=«p5p1»
dhcpd.conf такой
ddns-update-style none;
# MS routes: adds extras to supplement routers option
option ms-classless-static-routes code 249 = array of unsigned integer 8;
# RFC3442 routes: overrides routers option
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option time-offset 2;
default-lease-time 3600;
max-lease-time 7200;
authoritative;
log-facility local7;
#Zone2
subnet 192.168.3.0 netmask 255.255.255.224 {
range 192.168.3.2 192.168.3.30;
option subnet-mask 255.255.255.224;
option broadcast-address 192.168.3.31;
option routers 192.168.3.1;
option ms-classless-static-routes 16, 192,168, 192,168,3,1;
option rfc3442-classless-static-routes 16, 192,168, 192,168,3,1;
}
#Zone3
subnet 192.168.3.32 netmask 255.255.255.224 {
range 192.168.3.34 192.168.3.62;
option subnet-mask 255.255.255.224;
option broadcast-address 192.168.3.63;
option routers 192.168.3.33;
option ms-classless-static-routes 16, 192,168, 192,168,3,33;
option rfc3442-classless-static-routes 16, 192,168, 192,168,3,33;
}
#Zone4
subnet 192.168.3.64 netmask 255.255.255.224 {
range 192.168.3.66 192.168.3.94;
option subnet-mask 255.255.255.224;
option broadcast-address 192.168.3.95;
option routers 192.168.3.65;
option ms-classless-static-routes 16, 192,168, 192,168,3,65;
option rfc3442-classless-static-routes 16, 192,168, 192,168,3,65;
}
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto p4p1
iface p4p1 inet static
address x.x.x.x
netmask 255.255.255.0
network x.x.x.0
broadcast x.x.x.x
gateway x.x.x.x
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
auto p5p1
iface p5p1 inet static
address 192.168.18.4
netmask 255.255.255.224
network 192.168.18.0
broadcast 192.168.18.31
#gateway 178.172.150.253
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 8.8.8.8
При запуске сервера /etc/init.d/isc-dhcp-server start
выдает следующее
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start isc-dhcp-server
isc-dhcp-server start/running, process 15473
В логах вот это
Mar 26 10:14:31 ebs dhcpd: Not configured to listen on any interfaces!
Mar 26 10:14:31 ebs dhcpd: Internet Systems Consortium DHCP Server 4.2.4
Mar 26 10:14:31 ebs dhcpd: Copyright 2004-2012 Internet Systems Consortium.
Mar 26 10:14:31 ebs dhcpd: All rights reserved.
Mar 26 10:14:31 ebs dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 26 10:14:31 ebs dhcpd: Internet Systems Consortium DHCP Server 4.2.4
Mar 26 10:14:31 ebs dhcpd: Copyright 2004-2012 Internet Systems Consortium.
Mar 26 10:14:31 ebs dhcpd: All rights reserved.
Mar 26 10:14:31 ebs dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 26 10:14:31 ebs dhcpd: Wrote 0 leases to leases file.
Mar 26 10:14:31 ebs dhcpd:
Mar 26 10:14:31 ebs dhcpd: No subnet declaration for p5p1 (192.168.18.4).
Mar 26 10:14:31 ebs dhcpd: ** Ignoring requests on p5p1. If this is not what
Mar 26 10:14:31 ebs dhcpd: you want, please write a subnet declaration
Mar 26 10:14:31 ebs dhcpd: in your dhcpd.conf file for the network segment
Mar 26 10:14:31 ebs dhcpd: to which interface p5p1 is attached. **
Mar 26 10:14:31 ebs dhcpd:
Mar 26 10:14:31 ebs dhcpd:
Mar 26 10:14:31 ebs dhcpd: Not configured to listen on any interfaces!
Подскажите в чем может быть проблема? Буду очень признателен за помощь.