I'm trying to break my network into different subnets.
Server is located into 192.168.15.0/24 subnet.
I have the following declaration in my dhcp.conf:
subnet 192.168.15.0 netmask 255.255.255.0 {
range 192.168.15.100 192.168.15.250; option routers 192.168.15.236;
};
When I'm trying to change it to another range:
subnet 192.168.14.0 netmask 255.255.255.0 {
range 192.168.14.100 192.168.14.250; option routers 192.168.15.236;
};
No addresses are allocated. Even if I'm trying to create fixed address:
host mee-laptop {
hardware ethernet 10:(..); fixed-address 192.168.14.115;
}
Server won't assign this address to my computer.
I tried to created virtual interface in 192.168.14.0/24 subnet, but it didn't help.
Also, when I'm setting my computer address manually it works and I'm able to access 192.168.15.0/24 network as well as 192.168.14.0/24 network, but when I'm creating server virtual interface with address in 14.0/24 network again I'm not able to reach server and other networks from my computer.
UPDATE:
My /etc/networking/interfaces file:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.15.236
netmask 255.255.0.0
#broadcast 192.168.240.127
gateway 192.168.15.254
auth eth0.2
iface eth0.2 inet static
address 192.168.14.1
netmask 255.255.255.0
vlan-raw-device eth0
Here is a part of dhcpd.log with information about my interface:
Feb 13 14:26:52 mario dhcpd: uid lease 192.168.15.101 for client 7c:c3:a1:a7:54:c3 is duplicate on 192.168.15.0/24
Feb 13 14:26:52 mario dhcpd: DHCPREQUEST for 192.168.15.98 from 7c:c3:a1:a7:54:c3 via eth0
Feb 13 14:26:52 mario dhcpd: DHCPACK on 192.168.15.98 to 7c:c3:a1:a7:54:c3 via eth0
And here is what's going on in tcpdump:
14:29:21.498248 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 7c:c3:a1:a7:54:c3, length 300
14:29:21.498469 IP 192.168.15.236.67 > 192.168.15.98.68: BOOTP/DHCP, Reply, length 300