OpenWrt Forum Archive

Topic: set sending other ip as Gateway in DHCP - openWRT Device not Gateway

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

i am running the DHCP server (DNSMasq) on an openWRT device (192.168.1.217) that is configured as an AP. Gateway is another device (192.168.1.1).

How can I configure the DHCP Server on openWRT not to send its own IP as the gateway adress when sending dchp packages but the gateway adress of the actual gateway?

Can this be don in the GUI (didn't find an option)?

thanks!

if configured a bridge where I host a wifi guest network with other dhcp settings within another subnet, therefore my custom settings under Services -> Services (DNSMasq) are as follows:

dhcp-range=br1,192.168.2.10,192.168.2.100,255.255.255.0,12h
dhcp-option=br1,3,192.168.2.1
dhcp-option=br1,6,8.8.8.8,8.8.4.4
interface=br1

My bridges are as follows:

root@stgh_nord:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.40167e58480a       no              vlan1
                                                                            vlan2
                                                                            eth1
                                                                            wl0.2
                                                                            eth2
                                                                            wl1.2
br1             8000.40167e58480a       yes            wl0.1
                                                                            wl1.1

Is the assumption right that I'd have to just add:

dhcp-option=br0,3,192.168.1.1

What ist the interface=br1 for? Do I have to add interface=br0 in the end?

(Last edited by haemse on 21 Feb 2018, 03:58)

? pleaes ;-)

I don't recognize the names of the bridges. The lan bridge is for example called br-lan on OpenWrt. Which version of OpenWrt are you using?

(Last edited by mikma on 23 Feb 2018, 11:32)

its br0 and br1

after adding:
dhcp-option=br0,3,192.168.1.1
interface=br0

it worked!

The discussion might have continued from here.