Alternate Default Gateway Assignment Broken in dnsmasq

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
malbers15
DD-WRT User


Joined: 28 Jan 2012
Posts: 82

PostPosted: Thu Mar 23, 2017 20:32    Post subject: Alternate Default Gateway Assignment Broken in dnsmasq Reply with quote
Assigning an alternate default gateway with dnsmasq additional options is not working on recent builds per these steps:

http://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server#Assign_an_alternate_Gateway


Does anyone know any work arounds to assign an alternative default gateway or when this functionality will be fixed?
Sponsor
malbers15
DD-WRT User


Joined: 28 Jan 2012
Posts: 82

PostPosted: Wed Mar 29, 2017 14:30    Post subject: Reply with quote
bump
khofm
DD-WRT Novice


Joined: 23 Mar 2017
Posts: 8

PostPosted: Wed Mar 29, 2017 18:29    Post subject: Reply with quote
Works for me...

I use a R7000, latest DD WRT release
malbers15
DD-WRT User


Joined: 28 Jan 2012
Posts: 82

PostPosted: Tue Apr 04, 2017 17:49    Post subject: Reply with quote
OK thank you for the additional information.

I have tested this on multiple TP-Link TL-WR740N v4 and a TP-Link TP-Link TL-WR841ND v9 and the procedure does not work.
AzN1337c0d3r
DD-WRT Novice


Joined: 07 Sep 2010
Posts: 11

PostPosted: Tue Jul 25, 2017 5:08    Post subject: Reply with quote
This problem is that apparently dnsmasq is adding its own default gateway and it appears higher up in the configuration file so it overrides the one you set via the UI.

Not really sure how to fix this though.

Here's what my /tmp/dnsmasq.conf file looks like:

Quote:
interface=br0
resolv-file=/tmp/resolv.dnsmasq
all-servers
strict-order
cache-size=2000
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=58
dhcp-option=br0,3,192.168.1.5 <-- default
dhcp-option=6,192.168.1.1
dhcp-authoritative
dhcp-range=br0,192.168.1.100,192.168.1.149,255.255.255.0,1440m
dhcp-host=A0:36:9F:1F:B2:F6,DaFurnace2017,192.168.1.4,9999999m
dhcp-host=00:0c:29:db:58:1c,DaFurnace2017-Ubuntu-VM,192.168.1.9,9999999m
dhcp-host=A0:36:9F:1F:B0:30,T5500,192.168.1.7,9999999m
dhcp-host=98:FC:11:93:40:52,E3000,192.168.1.3,9999999m
dhcp-host=00:1D:7E:F0:B1:AC,54GL,192.168.1.2,9999999m
dhcp-host=00:0C:29:E8:37:67,FileServer,192.168.1.6,9999999m
dhcp-host=00:26:18:24:A6:0E,Ubuntu-ZCash,192.168.1.8,9999999m
dhcp-host=40:6c:8f:36:b4:49,MBP-2014,192.168.1.10,9999999m
stop-dns-rebind
dhcp-option=3,192.168.1.1 <-- the one I want to add
easyrhino
DD-WRT Novice


Joined: 09 May 2018
Posts: 4

PostPosted: Wed May 09, 2018 22:07    Post subject: Reply with quote
AzN1337c0d3r wrote:
This problem is that apparently dnsmasq is adding its own default gateway and it appears higher up in the configuration file so it overrides the one you set via the UI.

Not really sure how to fix this though.

Here's what my /tmp/dnsmasq.conf file looks like:

Quote:
interface=br0
resolv-file=/tmp/resolv.dnsmasq
all-servers
strict-order
cache-size=2000
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=58
dhcp-option=br0,3,192.168.1.5 <-- default
dhcp-option=6,192.168.1.1
dhcp-authoritative
dhcp-range=br0,192.168.1.100,192.168.1.149,255.255.255.0,1440m
dhcp-host=A0:36:9F:1F:B2:F6,DaFurnace2017,192.168.1.4,9999999m
dhcp-host=00:0c:29:db:58:1c,DaFurnace2017-Ubuntu-VM,192.168.1.9,9999999m
dhcp-host=A0:36:9F:1F:B0:30,T5500,192.168.1.7,9999999m
dhcp-host=98:FC:11:93:40:52,E3000,192.168.1.3,9999999m
dhcp-host=00:1D:7E:F0:B1:AC,54GL,192.168.1.2,9999999m
dhcp-host=00:0C:29:E8:37:67,FileServer,192.168.1.6,9999999m
dhcp-host=00:26:18:24:A6:0E,Ubuntu-ZCash,192.168.1.8,9999999m
dhcp-host=40:6c:8f:36:b4:49,MBP-2014,192.168.1.10,9999999m
stop-dns-rebind
dhcp-option=3,192.168.1.1 <-- the one I want to add


Old post, sorry, but I had the same problem and thanks to your post had the same line in my dnsmasq.conf file.

I added this line to my dnsmasq options:

dhcp-option=br0,3,192.168.2.1

and this appears to fix things. I speculate that adding my new line in later overwrites the value that was already earlier in the file.
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6858
Location: Romerike, Norway

PostPosted: Thu May 10, 2018 10:37    Post subject: Reply with quote
br0 is missing from the second instance.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware 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 cannot attach files in this forum
You cannot download files in this forum