Created
August 4, 2016 11:49
-
-
Save horodchukanton/8647a76e7c60eb939c4a9e14baa3d619 to your computer and use it in GitHub Desktop.
Automatic fill of last range ip address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE dhcphosts_networks SET ip_range_last = INET_ATON(INET_NTOA(ip_range_first + (INET_ATON('255.255.255.255') - INET_ATON(INET_NTOA(mask))) - 2 )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment