Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

How to assign an alternate gateway from my DD-WRT router?

Aug 4, 2016 11:33AM PDT

Hello,

I have a Linksys E1200 loaded with DD-WRT. I am trying to assign clients a gateway IP other than that of the router itself. I looked through a bunch of forum posts concerning DNSMasq, followed the steps, and my router still assigns clients its own IP address instead of the gateway I'm specifying. For example, I use the following code in the Additional DNSMasq Options box:

dhcp-option=3,192.168.1.2

But I get 192.168.1.1, the IP of the router. What am I doing wrong? All responses are appreciated. Thanks.

Discussion is locked

- Collapse -
Answer
I'd head to the DDWRT forums for this one.
Aug 4, 2016 11:39AM PDT
- Collapse -
I've found a lead.
Aug 4, 2016 3:22PM PDT

After examining the files on the router, the DNSMasq settings are stored in /tmp/dnsmasq.conf. However, the file resets when I reboot the router and my changes are not saved. I realized that I have to write it to a permanent file. How do I go about doing that?

- Collapse -
(NT) I have TO write it
Aug 4, 2016 3:29PM PDT
- Collapse -
Answer
After taking a few risks, I've found the answer.
Aug 8, 2016 10:14AM PDT

The dnsmasq.conf stored in the temporary folder did not save manual settings made by a terminal. It required JFFS, which the mega build was too big to support on the Linksys E1200. So I reverted to stock firmware, and then flashed the router with the mini build. This left enough space to support JFFS. I retried the dnsmasq settings on the webpage, and BOOM! It worked.