Posted: Tue Oct 17, 2017 14:56 Post subject: Two DHCP servers
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.
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