DHCP server control - 22 mask IP range

I am going to create dhcp IP range XXX.XXX.6.11-XXX.XXX.8.255 netmask 255.255.252.0
GW XXX.XXX.6.1/22

after I did all the changes I have received notification
DHCP IP Range must be within the same network (XXX.XXX.6.11)
How can I understand it, cause it is in the same network…?


Looks like there is restriction fixed to 512 Ip’s only. Is it?

same situation with Balance 210 and 380…

Hi @itadmin81
It looks like the issue amounts to the subnet. 192.168.6.11/22 would indicate a network from 192.168.4.0-192.168.7.255, so the DHCP addresses in the 192.168.8.X range would be outside the LAN network. I think you’ll find that if you change that to 192.168.7.254, the settings will take.

2 Likes

Can confirm.
Usable host range is 192.168.4.1 - 192.168.7.254 when subnet ID is 192.168.4.0/22

192.168.8.254 is in the 192.168.8.0/22 subnet. Range is 192.168.8.1 - 192.168.11.254

1 Like

ok. it is weird.
Why I cannot arrange the mask from address of the router?
Why it is calculated the mask from abstract and not from the first host in the subnet?
192.168.2.1-3.255 it is 23 mask and works good and if I setup 192.168.2.1-192.168.4.255 for my opinion it is 22 mask up to 5.255 however I cannot arrange it with the same failure.
same situation like with previous one example.

works good

doesn’t work

please help.

same, doesn’t woks

You cannot adjust the start and end points of the subnet IP range by making the LAN IP of the Peplink router different. For example, 192.168.1.1/24 is within the network that consists of 192.168.1.0 through 192.168.1.255 (.0 being the network address and .255 being the broadcast address). Likewise, 192.168.1.99/24 is also within that same network space.
I’m at a loss at the moment for how to explain this quickly and simply, but you might find use in a subnet calculator like this - Subnet Calculator - TunnelsUP
You’ll also want to avoid handing out the last IP of the IP range in a subnet as that is used for broadcast traffic. The first address should also not be used as it is the network address.

I might also ask what the goal is with the large subnet. You mentioned a 210 and 380 which are recommended for up to 150 and 500 users respectively. In the case of the /22 and /21 network, you’d have over 1000 and 2000 IP addresses on the network. Generally it’s a good idea to keep the subnet smaller to be more manageable.

3 Likes

thank You.