Two DHCPs Conflict

ShakeelAhmad215

Reputable
Jul 9, 2015
2
0
4,510
My computer is attached directly to my DSL Wifi Modem. 2nd port of this DSL modem goes to all the network in the office. I have enabled DHCP on this DSL modem (192.168.1.xx) and facing following problem:

There is a wifi router installed in the network which has its DHCP enabled with (192.168.0.xx)

when I connect a laptop or mobile to my DSL Modem through wifi, it sometime does not assign ip address to the laptop or mobile but the other wifi router installed in the network with "0" ip series assigns an IP address to the laptop or mobile.

The device connecting to my wifi dsl modem should not obtain ip address from the other router in my network.

Please guide.

Regards
 
Solution
Do you have your wireless router connected to your DSL modem through one of your router's LAN ports or through its WAN port? If it connected through a LAN port, then, as Bill stated, you need to disable the DHCP server on your wireless router. When a device connects wirelessly to the modem, it requests an address from the DHCP server. If there are two servers present, then whichever one responds first will be the one that gives the device its IP. It sounds like sometimes your modem responds first and sometimes your router responds first, and since they have different address ranges defined, your device will sometimes get a .1.x address and sometimes get a .0.x address. Disabling DHCP on your router will prevent it from handing out...
You cannot have more than 1 DHCP on the network unless these are master-slave pairs. No idea what ur trying to do but instead of 2nd port, try the WAN port instead, and have the "outside" network assign you a WAN address, and the "inside" network using your own DHCP. The network in the office will be your Internet. You will not be able to use "outside" resources like it used to when they were LAN.
 
Do you have your wireless router connected to your DSL modem through one of your router's LAN ports or through its WAN port? If it connected through a LAN port, then, as Bill stated, you need to disable the DHCP server on your wireless router. When a device connects wirelessly to the modem, it requests an address from the DHCP server. If there are two servers present, then whichever one responds first will be the one that gives the device its IP. It sounds like sometimes your modem responds first and sometimes your router responds first, and since they have different address ranges defined, your device will sometimes get a .1.x address and sometimes get a .0.x address. Disabling DHCP on your router will prevent it from handing out addresses and allow your devices to get their addresses exclusively from your modem.
 
Solution