havinf trouble giving each client ip range

I cannot set up my mikrotik to give each client his own ip range and subnets and so on. What i would like to do is give “client A” a ip range of 192.168.8.2 → 192.168.8.10 and “client B” a ip range of 192.168.8.11 → 192.168.8.20 and so on. But how?Can anyone please guide me on how to do this. Steps my be usefull.thanx

What do you mean under “giving clients an IP range”? If we are talking about DHCP and workstations, then (as far as I know), one workstation can get only one dynamic IP address.

If you want to make different IP pools with different settings (like different DNS or gateway), then you can append the pools to each other (see “next pool” option) and reserve a static IP for the clients after their MAC address from the proper pool. Then they will get the settings of the pool where their IP belongs. Clients without reservation will get an IP from the first pool with a free IP available.

If this is not what you want, please give some clarification…

Hi there what i want to do is give client A a range to use and client B another range. So that they dont use the same ip. I know that the wisp that i used gave each client a differant ip range. My range was 192.168.13.1 ~ 192.168.13.5. And my friend was on 192.168.8.1 ~ 192.168.8.5. And another person ip range was 192.168.13.6 ~ 192.168.13.10.

Could you please write down what do you want to do with those these ranges?

Do you have a router which is connected to the internet and on the internal network you want to give out small subnets (like 192.168.10.1-192.168.10.4) to users, where they can use the available IP addresses freely?

Do you want to NAT traffic from those subnets to the internet? Or routing traffic between the subnets? When you say “I want to give client a range”, you mean give them verbally (ie. telling them that they can use that speciofic range) or you want to do something automatically (via DHCP)?

Hi yes i want to do the following “I want to give client a range”, you mean give them verbally (ie. telling them that they can use that speciofic range)". SO if they go over that range then there should be no internet activity. i dont use dhcp so all ip’s will be static.thanx
ip.gif

After your picture, I would do something like that:

Specify 3 subnets:
192.168.6.0/27 - Default gateway/DNS = 192.168.6.1
192.168.10.0/28 - Default gateway/DNS = 192.168.10.1
192.168.13.0/28 - Default gateway/DNS = 192.168.13.1

  • Please notice that in your example USER1 and USER2 share the same subnet. If you want to separate them, one option would be to use 192.168.6.0/28 and 192.168.6.16/28 networks, in which case they would have the range of 192.168.6.1-14 and 192.168.6.17-30.


    On Mikrotik in IP\Addresses add the following IPs to WLAN1:
    192.168.6.1/27
    192.168.10.1/28
    192.168.103.1/28

In IP\Firewall\NAT add the following rules:

Chain: srcnat, Src. Address: 192.168.6.2-192.168.6.19, Action: masquerade
Chain: srcnat, Src. Address: 192.168.10.2-192.168.10.9, Action: masquerade
Chain: srcnat, Src. Address: 192.168.13.2-192.168.13.9, Action: masquerade

This way only the given ranges will have access to the internet, but will not guarantee that a user can use his range only. For example if USER1 specify the IP 192.168.6.10 on one of his computers, he will have internet access too, unless USER2 is using the address already, which will cause an IP conflict.
If you want to limit the IP range usage to a specific username, then I guess it can be done with RADIUS authentication, but unfortunately I don’t have too much knowledge about that.

Thnk you i will do that.