Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

linux dhcp server with multiple subnets

dhcpconfiguration.txt
Dear Experts

We have a network of less than 15 systems with 2 broadband connections from 2 different ISP's.
1. ISP1 in their provided router configured the network of 192.168.1.0/24 and their provided router ip 192.168.1.17 and function's as DHCP server in the LAN
2.. similarly ISP 2 also configured in their provided router with network of 192.168.1.0/24 and their provided router ip 192.168.1.1 and this also funcationing as DHCP server in the LAN.2
Both the routers of both ISP's are connected to the same switch at the present I have turned off ISP 2 router to avoid 2 DHCP in the LAN.
3. have linux server working as internal private DNS
As per the experts exchange experts advice I am in process of procuring the router with 2WAN port so that each one of the ISP will be connected to one of the WAN port and will stop DHCP service on the router level and will configure DHCP server in linux server. I would like to divide the network of 192.168.1.0/24 to 4 subnets, as following
a)192.168.1.0  of ip range 1 to 62
b)192.168.1.64 of ip range 65 to 126
c)192.168.1.128 of ip range 128 to 190
d) 192.168.1.192 of ip range from 193 to 254

attached DHCP configuration, request to please review the defined 2 subnets statements in the config
Soution design and suggestion for the below please:
in this dhcp server the defined 2 subnets i,e access point-1 to one of the subnet of above a) i,e 192.168.1.0  of ip range 1 to 62 and access point-2 to another subnet of above subnet b) 192.168.1.64 of ip range 65 to 126.
In the LAN if users has to connect to the accees points like few users to the access point device -1 of subnet 192.168.1.0 to avail the ip range 1 to 62 and few to the access point-2 of subnet 192.168.1.64 to avail the ip range 192.168.1.65 to 192.168.1.126, in this case should the linux server which is running DHCP server be configured with 2 nic's with static IP pertaining to each of the subnet and each of the NIC connect to the switch and from switch to access points, for example like the following  192.168.1.70 assign to NIC 2 and connect this NIC to the switch where the access point-2 is also connected to the same switch, so that when user selects the access point -2 as their wifi-connection then they will get the IP address from subnet 2 IP range that is from 192.168.1.64 of ip range 65 to 126
Similarly NIC 1 which is 192.168.1.16 which is DNS server and also DHCP server for the subnet 1 connect this to the another switch where the access point 1 is also connected, when users select the access point1 they are assigned the ip address from the subnet 1 to avail the IP address range 192.168.1.0  of ip range 1 to 62
Please suggest is this how it works if found incorrect please suggest.
Avatar of kevinhsieh
kevinhsieh
Flag of United States of America image

Why do you plan to have 4 different wireless AP, each on a separate subnet? That seems very unusual. What is the goal with having the different subnets? Do devices need to talk across subnets? If so, what do you plan to have routing the traffic?
Avatar of Goutham

ASKER

Thanks for the reply, we have 2 ISP's and want to use 2 access points each one of the Access point for each of the ISP hence if one is not working user can switch to another access point to access connectivity. yes devices also needs to talk across the subnets, can you please suggest the best way to go with,
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Goutham

ASKER

Thank you very much, will follow your suggestion going for 3 networks, can I understand like the following please correct me

1. stop dhcp service in ISP 1 router and ISP 2 router and configure DHCP server on seprate server, linux dhcp server.

2. the users systems get the IP from the DHCP server from C: 192.168.3.0/24 (local net)network not from 1.0/24 not from 2.0/24

3. we have to assign manual IP also from C: 192.168.3.0/24 (local net)network

Please suggest,
Avatar of noci
noci

@1:     more needs to be done ALL ports need a portforward from ISP1 router to WAN1 address, all ports on ISP2 router need to be forwarded to WAN2 address.   (mostly though a default server setting on a NAT or portforward page.).

1) DHCP is not needed but won' harm on the ISP1 & ISP2 routers.    so action not needed....
2) Correct.
3) no unless the system is a server.
Avatar of Goutham

ASKER

thank you very much, please help on the following
1) DHCP is not needed but won' harm on the ISP1 & ISP2 routers.    so action not needed....
the systems/devices connected to these dhcp server through wifi-device or manual assigning means these two ISP routers are of 2 different network and in any network only one dhcp server hence if one user connects to the ISP1 router where it releases  IP and device connects then the connected device is exclusively part of that network.
2) Correct.
the users systems get the IP from the DHCP server from C: 192.168.3.0/24 (local net)network not from 1.0/24 not from 2.0/24,  this to work in the same DHCP server configure additional nic with IP address of the C: 192.168.3.0/24 network ( assign nic 3 = 192.168.3.10 )and those systems which has to obtain the ip address from the DHCP server to be connected to the same switch where nic3=192.168.3.10 which is dhcp server
please suggest
@3 The C network should have 1 DHCP server. whatever one you choose.
@1 yes if connected to the router of ISP 1 they will use ISP1, but not be able to access network C very easy
      same for ISP2..., if you want access to the network C you realy need to think about a dedicated AP just for that and disable the ISP one, or use those for guest access.

and be sure the Router's addresss on A & B are reserved or outside of the DHCP pool of the ISP routers.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@kevin: that is EXACTLY what is stated before in the previous question,
https://www.experts-exchange.com/questions/29101587/handling-different-subnets-in-DHCP-server-with-2-ISP.html

IMHO things get lost in translations.