I've got Linux set up in VirtualBox. To practice things for school I was trying to make isc-dhcp-server work but I've got a weird problem. DHCP server works only with this configuration:
# A slightly different configuration for an internal subnet.
subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.100 192.168.5.110;
option domain-name-servers 8.8.8.8;
option domain-name "something.local";
option subnet-mask 255.255.255.0;
option routers 192.168.5.255;
option broadcast-address 192.168.5.254;
default-lease-time 600;
max-lease-time 7200;
#
}
And Linux LAN adapter ip: 192.168.5.1/24
With such configuration everything works just fine on Windows 7.
If I only change ip addressing to for example:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.110;
option domain-name-servers 8.8.8.8;
option domain-name "something.local";
option subnet-mask 255.255.255.0;
option routers 192.168.1.255;
option broadcast-address 192.168.1.254;
default-lease-time 600;
max-lease-time 7200;
#
}
And Linux LAN adapter ip to: 192.168.1.1/24
DHCP doesn't work.
I do restart isc-dhcp-server after making any changes in /etc/dhcp/dhcpd.conf
I've got this homework in which I have to configure the DHCP for 172.16.19.0 network, how do I do it, what am I doing wrong? Could please somebody help me to get this to work?
/var/lib/dhcp/dhcpd.leases
file so that the system can start again creating a new one (not sure).