[opensuse] running out of IP addresses for DHCP
Hello, 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. Currently my dhcpd.conf files has this; shared-network MY_DOMAIN { subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; } How can I properly expand the range? Thank you in advance, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James D. Parra wrote:
Hello,
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.
Currently my dhcpd.conf files has this;
shared-network MY_DOMAIN {
subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; }
How can I properly expand the range?
Thank you in advance,
James
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. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James D. Parra pecked at the keyboard and wrote:
Hello,
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.
Currently my dhcpd.conf files has this;
shared-network MY_DOMAIN {
subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; }
How can I properly expand the range?
Thank you in advance,
James
It's been a while but if I remember right something like 192.168.0.0 with a netmask of 255.255.252.0 and a broadcast of 192.168.1.255 should allow the entire 192.168.0.1 - 192.168.1.254 addresses to be given ny DHCP. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider pecked at the keyboard and wrote:
James D. Parra pecked at the keyboard and wrote:
Hello,
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.
Currently my dhcpd.conf files has this;
shared-network MY_DOMAIN {
subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; }
How can I properly expand the range?
Thank you in advance,
James
It's been a while but if I remember right something like 192.168.0.0 with a netmask of 255.255.252.0 and a broadcast of 192.168.1.255 should allow the entire 192.168.0.1 - 192.168.1.254 addresses to be given ny DHCP.
Typo in the netmask it should be 255,255,254,0. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider wrote:
Ken Schneider pecked at the keyboard and wrote:
James D. Parra pecked at the keyboard and wrote:
Hello,
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.
Currently my dhcpd.conf files has this;
shared-network MY_DOMAIN {
subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; }
How can I properly expand the range?
Thank you in advance,
James
It's been a while but if I remember right something like 192.168.0.0 with a netmask of 255.255.252.0 and a broadcast of 192.168.1.255 should allow the entire 192.168.0.1 - 192.168.1.254 addresses to be given ny DHCP.
Typo in the netmask it should be 255,255,254,0.
Another typo. Normally "." is used, not "," in addresses and masks. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 03 February 2008 11:14:27 am Ken Schneider wrote:
Typo in the netmask it should be 255,255,254,0.
And again. It should be 255.255.254.0 ;-) -- Regards, Rajko. See http://en.opensuse.org/Portal -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider wrote:
James D. Parra pecked at the keyboard and wrote:
Hello,
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.
Currently my dhcpd.conf files has this;
shared-network MY_DOMAIN {
subnet 192.168.2.0 netmask 255.255.255.0 { default-lease-time 259200; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; option domain-name "mydomain.com"; option domain-name-servers 192.168.2.2; option netbios-name-servers 192.168.2.2; option ntp-servers 192.168.2.2; option time-offset -28800; range dynamic-bootp 192.168.2.62 192.168.2.66; range dynamic-bootp 192.168.2.68 192.168.2.71; range dynamic-bootp 192.168.2.73 192.168.2.107; range dynamic-bootp 192.168.2.109 192.168.2.129; range dynamic-bootp 192.168.2.131 192.168.2.133; range dynamic-bootp 192.168.2.135 192.168.2.137; range dynamic-bootp 192.168.2.139 192.168.2.153; range dynamic-bootp 192.168.2.155 192.168.2.157; range dynamic-bootp 192.168.2.159 192.168.2.175; range dynamic-bootp 192.168.2.177 192.168.2.253; }
How can I properly expand the range?
Thank you in advance,
James
It's been a while but if I remember right something like 192.168.0.0 with a netmask of 255.255.252.0 and a broadcast of 192.168.1.255 should allow the entire 192.168.0.1 - 192.168.1.254 addresses to be given ny DHCP.
Not quite. A netmask of 255.255.252.0 or /22 will result in a range reaching from 192.168.0.0 to 192.168.3.255. Since the OP said 192.168.3.x is already in use, it may be necessary to expand the address range in two stages. However, without knowing how the network(s) is(are) configured, I can't say for certain. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
James D. Parra
-
James Knott
-
Ken Schneider
-
Rajko M.