I'd like to expand the pool of addresses DHCP hands out from, 192.168.2.0/255.255.255.0 to 192.168.0.0/255.255.255.0, however I am not sure how to do this correctly. Also, I'd like to remove the ranges of 192.168.2.0, 192.168.3.0 & 192.168.23.0, from the DHCP pool so I can reserve these ranges for manual assignments.
First off, the size of your subnet is always a power of two, that is 256, 512, 1024 etc., less the two end addresses. Also, simply moving 192.168.2.0/255.255.255.0 to 192.168.0.0/255.255.255.0 is not expanding it, it's merely moving it. To expand it, you'll also have to change the subnet mask. If you change it to 255.255.254.0 or /23, your subnet will then contain 512 (510 usable) addresses, starting at 192.168.0.0. Changing the subnet to 255.255.252.0 or /22 will give you 1024 addresses, ranging from 192.168.0.0 to 192.168.3.255. Since it appears that 192.168.3.x is already in use, you may have to do this in two stages, first to /23 and moving the 192.168.3.x users to the new /23 network. Then after that migration, expand the network to /22 and move those on the 192.168.23.x network to the new /22 network. The easiest way to move the systems is with the dhcp server. Cut the lease time to a low value, remove the old address pool and then simply wait for the users to move as their leases expire and get new addresses on the new 192.168.0.x network. After the move has been completed, you can put the lease time back to the normal value. When this is done, you'll have everyone on the 192.168.0.0/22 network, which will have 1022 usable addresses, ranging from 192.168.0.1 to 192.168.3.254. BTW, when specifying subnet masks, the slash format is preferable to dotted decimal, i.e /24 instead of 255.255.255.0. Also, the lowest and highest addresses are not available for use. They're considered the network and broadcast addresses and should never be assigned to a device. ~~~~~~~ Thank you all for the great responses and details. Would this work if I used 192.168.50./23 to give me a range from 192.168.50.0 to 192.168.53.0? Increasing the range from 254 addresses to 510 addresses would work for me. Again, many thanks. This is a great list. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org