Two DHCP servers

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
andrew77
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 16

PostPosted: Tue Oct 17, 2017 14:56    Post subject: Two DHCP servers Reply with quote
Hello. I am looking to install YAMon onto a secondary router that has dd-wrt installed onto it, but for YAMon to work it needs to be a DHCP server. The two routers and current configurations are:

TP-Link Archer VR600 (Internet, DHCP server, stock firmware)
Ethernet cable (Archer WAN to Belkin LAN)
Belkin F7D4302 v1 (dd-wrt firmware)

Both devices have other wired and wireless devices connected to them but I want the Belkin to issue IP addresses to the devices connected to it, and everything else the Archer can deal with.

I have tried just enabling DHCP server on the Belkin, making sure the IP ranges don't overlap, but the devices connected to the Belkin are still being issued addresses from the Archer.

I'm not sure if I can use a different netmask because I still want the devices connected to the Belkin to be able to access devices connected to the Archer including the Internet.

Any pointers on how I can achieve this would be greatly appreciated. Thanks.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12913
Location: Netherlands

PostPosted: Wed Oct 18, 2017 11:43    Post subject: Reply with quote
You can not have two DHCP servers on the same subnet.

If i understand correctly you have the Belkin router set up as a WAP ( https://www.dd-wrt.com/wiki/index.php/Wireless_Access_Point )

The easiest solution is to reset the belkin and attach the LAN cable to the WAN port of the Belkin router e.g daisy chaining the routers, of course both routers have to be on different subnets, so if your primary Archer router is on 192.168.1.x then set the Belkin to 192.168.2.1.
This will give you internet access right out of the box and clients from the secondary Belkin router can see clients from the primary router but not the other way around, for that you need some additional routing and firewall settings which i can give you if necessary.

Another solution is to keep the WAP and unbridge the wireless and wired ports and putting them on another subnet (this is more or less the same as an unbridged VAP) put them all on the same bridge (e.g. br1) and add the following to the firewall (I am not 100% sure it is correct but it gives you an idea):
Code:
iptables -I FORWARD -i br1 -m state --state NEW -j ACCEPT # bridges everything again
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to `nvram get lan_ipaddr # for internet acces

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum