0

I can't seem to extend my pool for my additional users. I don't have any problem with my connection when the ip address handed is 192.168.10.xxx but when it reaches to 192.168.11.xxx to 192.168.16.xxx, it can no longer use the internet. What am I missing with my setup?

Updated: enter image description here

David
  • 51
  • 1
  • 6
  • Did you set up NAT for all those networks ? Why not using a single network like 192.168.8.0/21 (192.168.8.1 -> 192.168.15.254) for example? – Benoit PHILIPPON Apr 09 '19 at 08:34
  • @BenoitPHILIPPON i tried setting up the NAT for the pool (not sure how to get it done correctly) – David Apr 10 '19 at 07:05
  • Yes but you don't have any IP in those pools.If you want to provide internet, you have to have one IP which will be the gateway for your clients. – Benoit PHILIPPON Apr 10 '19 at 11:18
  • You just want to extend the number of users in your DHCP pool, right ? from 253 to 2000 clients or so? – Benoit PHILIPPON Apr 10 '19 at 11:18
  • @BenoitPHILIPPON yes that is correct, I want to extend my usable IP for my growing users. My working gateway is 192.168.10.1, should I set the gateway of my other subnet's gateway to 192.168.10.1 in the DHCP Server -> Networks? Address: 192.168.11.0/24 Gateway: 192.168.10.1 – David Apr 11 '19 at 01:42
  • Well your gateway must be in the same network;you just have to extend your network, not adding new ones. I'll post an answer – Benoit PHILIPPON Apr 11 '19 at 06:38

1 Answers1

0

If you want to add more IPs in your DHCP server, just increase the range of your current network. You currenlty have 253 clients (192.168.10.0/24)

Don't add more /24 networks, it's useless, just use for example 192.168.8.0/21 (range .8.1 to .15.254) to get 2046 IPs. See http://www.subnet-calculator.com/subnet.php to test various network ranges.

So I suggest this:

  • remove parasites /24 networks and NAT rules (192.168.11.0/24 to .16/24)
  • increase the range of your current network: change IP address from 192.168.10.1/24 to 192.168.10.1/21, subnet 255.255.248.0, network 192.168.8.0
  • change NAT/masquerade rule: src-address=192.168.8.0/21
  • change dhcp network range 192.168.8.0/21
  • change dhcp pool size with two segments: 192.168.8.1-192.168.9.254 and 192.168.10.100-192.168.15.254

and, normally, it should work

  • "change dhcp network range 192.168.8.0/24" - I'm guessing the dhcp net range is 192.168.8.0/21? – David Apr 11 '19 at 12:42
  • I've followed your suggestion, and this is my current config: Address: IP - 192.168.10.1/21 Network - 192.168.8.0 DHCP Server: Network - 192.168.8.0/21 Pool: dhcp1 - 192.168.8.1 - 192.168.9.254 192.168.10.100 - 192.168.15.254 Firewall: NAT - Src. Address - 192.168.8.0/21 (removed other NATs) **if the ip address received is 192.168.10.xxx, I have the internet connection. However, when I get an ip address on different range, such as 192.168.8.xxx, i'm losing internet connection. I'm not sure what I'm missing in my config. – David Apr 12 '19 at 03:47
  • From your sreenshot, the gateway in DHCP network is incorrect, it should be 192.168.10.1 and not 8.1. But this does not explain why it works with 10.x clients; it should not.. Update the DHCP network, renew all leases and try again – Benoit PHILIPPON Apr 16 '19 at 08:35