<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px"><div style="margin:0px">Hi,</div><div style="margin:0px">I have a strange problem with isc-dhcp-server 4.0 on Ubuntu 18.04. I tried everything, read documentation, forums, etc.. but I can't solve problem.</div><div style="margin:0px"><br></div><div style="margin:0px">I have server with two vlan interface which is connected on vswitch. Both interfaces have set of public IP addresses.</div><div style="margin:0px">All that is ok and address is reachable and works.</div><div style="margin:0px"><br></div><div style="margin:0px">My interfaces name is vmbr0 and vmbr0:2</div><div style="margin:0px">Both interface I have set in /etc/default/isc-dhcp-server</div><div style="margin:0px"><br></div><div style="margin:0px">INTERFACESv4="vmbr0 vmbr0:2"</div><div style="margin:0px"><br></div><div style="margin:0px">In dhcpd.conf I have:</div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px">#</div><div style="margin:0px"># Global options</div><div style="margin:0px">#</div><div style="margin:0px"><br></div><div style="margin:0px">authoritative;</div><div style="margin:0px">log-facility local7;</div><div style="margin:0px">default-lease-time 3600;</div><div style="margin:0px">max-lease-time 7200;</div><div style="margin:0px"><br></div><div style="margin:0px">#</div><div style="margin:0px"># Subnet declarations</div><div style="margin:0px">#</div><div style="margin:0px">subnet 116.199.70.96 netmask 255.255.255.240 {</div><div style="margin:0px">default-lease-time 3600;</div><div style="margin:0px">option routers 116.199.70.97;</div><div style="margin:0px">option interface-mtu 1400;</div><div style="margin:0px">option subnet-mask 255.255.255.240;</div><div style="margin:0px">option broadcast-address 116.199.70.111;</div><div style="margin:0px">option domain-name-servers 8.8.8.8, 8.8.4.4;</div><div style="margin:0px">range 116.199.70.98 116.199.70.110;</div><div style="margin:0px">}</div><div style="margin:0px"><br></div><div style="margin:0px">subnet 116.199.68.208 netmask 255.255.255.240 {</div><div style="margin:0px">default-lease-time 3600;</div><div style="margin:0px">option routers 116.199.68.209;</div><div style="margin:0px">option interface-mtu 1400;</div><div style="margin:0px">option subnet-mask 255.255.255.240;</div><div style="margin:0px">option broadcast-address 116.199.68.223;</div><div style="margin:0px">option domain-name-servers 8.8.8.8, 8.8.4.4;</div><div style="margin:0px">range 116.199.68.210 116.199.68.222;</div><div style="margin:0px">}</div><div style="margin:0px"><br></div><div style="margin:0px">## IP reservation from first subnet ##</div><div style="margin:0px"><br></div><div style="margin:0px">host myhost1 {</div><div style="margin:0px">hardware ethernet FE:4A:DB:C0:BF:AD;</div><div style="margin:0px">fixed-address 116.199.70.98;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost2 {</div><div style="margin:0px">hardware ethernet AA:6D:47:76:58:58;</div><div style="margin:0px">fixed-address 116.199.70.99;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost3 {</div><div style="margin:0px">hardware ethernet 86:CB:59:8B:CD:BA;</div><div style="margin:0px">fixed-address 116.199.70.100;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost4 {</div><div style="margin:0px">hardware ethernet D6:9R:79:44:93:AD;</div><div style="margin:0px">fixed-address 116.199.70.101;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost5 {</div><div style="margin:0px">hardware ethernet 06:BW:15:DD:09:79;</div><div style="margin:0px">fixed-address 116.199.70.102;</div><div style="margin:0px">}</div><div style="margin:0px"><br></div><div style="margin:0px">## IP reservation from second subnet ##</div><div style="margin:0px"><br></div><div style="margin:0px">host myhost6 {</div><div style="margin:0px">hardware ethernet A6:88:27:56:E8:3A;</div><div style="margin:0px">fixed-address 116.199.68.210;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost7 {</div><div style="margin:0px">hardware ethernet 82:62:6C:7B:AB:74;</div><div style="margin:0px">fixed-address 116.199.68.211;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost8 {</div><div style="margin:0px">hardware ethernet CA:A1:7C:C3:D4:B3;</div><div style="margin:0px">fixed-address 116.199.68.217;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost9 {</div><div style="margin:0px">hardware ethernet F1:A6:7B:25:57:F4;</div><div style="margin:0px">fixed-address 116.199.68.219;</div><div style="margin:0px">}</div><div style="margin:0px">host myhost10 {</div><div style="margin:0px">hardware ethernet BE:87:BF:DB:F4:9E;</div><div style="margin:0px">fixed-address 116.199.68.218;</div><div style="margin:0px">}</div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px">My problem is in that because the client in IP reservation sometimes gets reserved IP sometimes first free IP from range which isn't in the reservation list.</div><div style="margin:0px">I can't figure how to set this config to permanent stay on the same IP.</div><div style="margin:0px"><br></div><div style="margin:0px">For example if myhost1 gets the right IP and that VM works about 10 days and I need to reboot for some reason after reboot get another IP, that is weird.</div><div style="margin:0px">Or on an example I have baremetal server where I have virtualization and there is my VM from myhost1 to myhost8, if I reboot baremetal after booting, two VM get right IP, other not.</div><div style="margin:0px"><br></div><div style="margin:0px">What wrong am I doing?</div><div style="margin:0px">Thank you.</div><div style="margin:0px"><br></div></div><br><div class="gmail_signature"><div style="font-family:'helvetica Neue',helvetica;font-size:14px;line-height:normal;margin:0px;background-color:rgb(253,253,253)"><font color="#333333" face="arial, sans-serif"><b>—</b></font></div><div style="font-size:14px;line-height:normal;margin:0px;font-family:arial,sans-serif;background-color:rgb(253,253,253)"><font color="#333333"><b><br></b></font></div><div style="font-size:14px;line-height:normal;margin:0px;font-family:arial,sans-serif;background-color:rgb(253,253,253)"><font color="#333333"><b>Petar Kozić</b></font><span style="color:rgb(51,51,51)"><br><br></span></div></div></body></html>