ubuntu server 14.04 пытаюсь запустить сервер после внесения настроек , но не могу запустить он мне пишет что не правильно подобрана маска и ип адрес, вроде по всем правилам маска подсети выбрана правельно. НЕ уже ли надо выбирать только нужные адреса чтоб создать подсеть 192.168.....и не какой другой
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet static
address 172.10.10.25
netmask 255.255.0.0
gateway 172.10.10.1
auto eth0
iface eth0 inet static
address 152.18.18.1
netmask 255.255.0.0
gateway 172.10.10.1
Не могу запустить isc-dhcp-server , набираю :
xalex@gai:~$ sudo /etc/init.d/isc-dhcp-server restart
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was:
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp//etc/dhcp/dhcpd.conf line 53: subnet 128.162.18.0 netmask 255.255.0.0: bad subnet number/mask combination.
subnet 128.162.18.0 netmask 255.255.0.0
^
Configuration file errors encountered -- exiting
Вот кусок с конфига :
# A slightly different configuration for an internal subnet.
subnet 128.162.18.0 netmask 255.255.0.0 {
range 128.162.18.2 128.168.18.50;
option domain-name-servers 128.162.18.1;
option domain-name "internal.example.org";
option routers 152.18.18.1;
option broadcast-address 128.168.18.50;
default-lease-time 600;
max-lease-time 7200;
}
Вот /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 eth1
iface eth1 inet static
address 172.10.10.25
netmask 255.255.0.0
gateway 172.10.10.1
auto eth0
iface eth0 inet static
address 128.162.18.1
netmask 255.255.0.0