Use correct vars for IPv6 when checking subnet start and end
Check that DHCP end IP is >= DHCP start IP