Community discussions

MikroTik App
 
Mostafaaboelhassan
just joined
Topic Author
Posts: 1
Joined: Fri Dec 02, 2022 10:31 pm

IP Pool question

Fri Dec 02, 2022 10:40 pm

Good day to you all
i have a question
if i have a pool for DHCP
10.0.0.1/24
and i need more IP Addresses than 254 IP
i tried to change to /16 but every IP That changed in the third octet like 10.0.1.x is not going online
so if i make another pool 192.168.1.1/24
and i when the first pool completed it will take ip from the second pool
is it will work ? because my default gateway and hotspot ip is 10.0.0.1

i am working in a hotel and WI-FI is being Brodcasting through TP-Link accesses

Thanks in advance
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2855
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: IP Pool question

Sat Dec 03, 2022 1:55 am

Pool should be set to 10.0.0.0/24 or to 10.0.0.2-10.0.0.254
10.0.0.1/24 is one address pool equal to address of the router.
Look for any on-line IP calculator and check how mask and addresses fit.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: IP Pool question

Sat Dec 03, 2022 12:30 pm

Apart from setting pool address range correctly, it is necessary to adjust a few other things for larger subnet:
  1. subnet mask of router's own address ... under /ip/address the new subnet mask has to be same as (or shorter than) the one used for pool, i.e. it has to cover all addresses available in pool. E.g. if you're thinking to extend pool to 10.0.0.5-10.0.3.254 (almost the same as 10.0.0.0/22), then router's address needs to be changed to 10.0.0.1/22 (or shorter subnet mask, e.g. /20 or /16)
    If you go for second pool (e.g. 192.168.x.0/24), you'll have to add router IP address from that range and add another DHCP-server network config etc. making it a tad more complicated than extending existing subnet.
  2. DHCP network settings need to match pool ... under /ip/dhcp-server/network ... the address property has to match pool range, e.g. set it to 10.0.0.0/22 (or some such, it can be wider e.g. same as router's subnet mask). Also adjust property netmask, it has to match netmask of router's address (e.g. /20 or whatever you choose to use).

In theory DHCP address pool can overlap other (statically set) addresses, there's mechanizm not to assign address which is already in use. But it is goot custom to avoid overlap by setting address pool so that it doesn't overlap any of statically assigned addresses (including router's own address).

Who is online

Users browsing this forum: DanMos79, icemending and 77 guests