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

asked on

handling different subnets in DHCP server with 2 ISP

Dear Experts

We are in process of setting up very small IT infra where local dns (private dns server) be done on ubuntu server16.4.4.  We will be hosting web based application server in on-premise and for the internet we have 2 service providers  both are of different,
1.  ISP 1 provided device enabled with the dhcp service for the network and it is ON with the subnet of 192.168.1.0/24  this is more stable connection
2. ISP2 also provided device and enabled with DHCP service for the network and they are asking to turn it ON -
purpose of 2 service provider is to have backup when one is down operation can happen with other service provider
As of now I have not yet turned ISP-2 modem/router ON as this will also function as DHCP server and in a network 2 DHCP server cannot be enabled.
Please suggest the best practice
1. Should I have to ask ISP-2 to configure for different subnet like 192.168.70.0/24 and configure one DHCP server in linux server define 2 subnets here and stop both service providers ISP-1 and ISP-2 modem/router DHCP service but when the clients systems boot which subnet to be released as ISP-1 may be down and but the DHCP server release the IP of subnet ISP-1 , how to switch here to another subnet - NOT sure if this is good way to go with please suggest
2. stop dhcp service of ISP-1 and ISP-2 devices and configure dhcp server in linux but with one subnet only but segment the ip range for ISP-1  router and gateway sections pointing to ISP-1 in dhcp config and similarly segment another ip range for the ISP-2 and router and gate way sections IP pointing to ISP-2,

please suggest the best practice should I have to stop DHCP in both ISP devices and setup DHCP server in linux box but not sure on above 1 or 2 or any other best possible please suggest, thanks in advance.
Avatar of Mahesh
Mahesh
Flag of India image

DHCP is not your problem

What you need to do is, configure failover at your router where your ISP lines are terminated so when ISP1 one goes down, ISP2 should take over the internet

DHCP can be remain with onpremsie server with single or multiple subnets, you may configure HA for this dhcp setup
I don't now how to configure dhcp HA in Linux, if you already have windows 2012 R2 servers, you can configure software based HA there
Avatar of noci
noci

IMHO you need a router of your OWN behind those.
Easiest might be a router with DUAL WAN capability   If you Really need redundancy the router should be capable of working together with a similar router. (HA capability)
I suggest looking into one of the Zywall USG models.  (they can work like this, there are others that can do this i know these best)
The ISP's SHOULD have differen subnets.
Your lan should be behind that router and have an even different address range.
Avatar of Goutham

ASKER

thank you very much for the reply, if I go with router with dual WAN capability the same will work as DHCP server both ISP's should be configured with differnt subnets and different address range, is this my understanding correct please suggest. thanks in advance.
There is good advice above, but I'd add to it.  I'd suggest eliminating the ISP-provided routers (more likely modem/routers) and replace them with modems.  You'll have public IP addresses provided by them to a dual-WAN router that you'll provide.

Eliminating the routers should make management of this (especially if you need port forwarding) much easier.

If you can't provide your own modems, try to get the modem/routers changed to bridged mode where they more or less act like a modem.
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 for the reply, should we have to look for router or can we think of UTM which can function as router as well firewall if yes then can you please suggest.
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