Summary: I have have two Asus routers running Merlin firmware on a home network. One is in media bridge mode.
The clients on the media bridge have issues getting the correct IP and gateway using DHCP.
**** Main Router
Asus 1900P running Merlin 384.7_2
Connects to WAN.
Wired and wireless clients.
IP 192.168.1.1
**** Media Bridge
RT-AC68P running Merlin 384.7_2
Media Bridge Mode.
Wireless connection back to Main Router.
Wired Clients only.
IP 192.168.1.2 (statically assigned)
Default GW: 192.168.1.1 (static)
Subnet mask: 255.255.255.0
DNS: Blank.
Both routers have 'Enable JFFS custom scripts and configs' set to YES.
On the Main router I have DHCP enabled, the pool starts at 192.168.1.3 and ends at 192.168.1.254
The Default gateway and 'DNS Server 1' are set to 192.168.1.1 (this is all under LAN --> DHCP server, to be clear, not talking about the WAN side)
I have Manually assigned 4 IP's starting at 192.168.1.2 through 192.168.1.5
192.168.1.2 is the Media Bridge and it has its IP statically assigned, but it's in the manual reservation list because that's what populates etc/hosts.dnsmasq on the main router and lets me resolve the media bridge hostanme.
The clients with manual IP reservations, that connect to the main router, either wired or wireless, always seem to get the correct IP/Gateway via DHCP.
There is a Win 10 client that connects via the media bridge and this always seems to have problems with both IP and gateway.
If dnsmasq is running on the media bridge AND main router, and I do a DHCP release and renew from the Win 10 pc, then I see something like this in the logs of the media bridge - edited/formatted for clarity:
and I see this from the main router:
From what I have read and the results I'm seeing, it appears like I need to stop dnsmasq on the media bridge, even though there is no way that I can see to do this through the admin UI.
If I ssh into the media bridge and stop the service with 'service stop_dnsmasq' and repeat the process above I see this in the logs of the main router:
And this seems to get the win10pc to take the correct IP and gateway. However I lose all this on the reboot of the media bridge when the dnsmasq service restarts.
I tried 'service disable_dnsmasq' but that didn't help either. Then I resorted to stopping the service in the services-start jffs user script. (Exactly what @HariSeldon did as detailed in the last post on here: https://www.snbforums.com/threads/rt-ac68u-in-media-bridge-mode-responding-to-dhcp-requests.48259/)
The problem here is that dnsmasq has already started and given the bad IP/GW to win10pc before the services-start script executes and stops it - I can see that happening in the logs.
Then the dnsmasq is stopped on the media bridge but win10pc is left in a bad state thinking its gateway is 192.168.1.2 and it can't reach the dnsmasq service on the main router to rectify the situation.
My not so elegant solution to this is to pollute the dnsmasq.conf.add file with something that would stop it from ever starting: "dhcp-range="
This is what I see in the media bridge logs on restart and everything seem to work fine:
My questions are:
1. Am I taking totally the wrong approach to this setup?
2. If Q1 = No, Is there a better way to prevent dnsmasq from starting on the media bridge - is there a GUI setting I'm missing or is there a config option in a file somewhere to achieve this?
3. Does the 'service' command on the router ever say anything other than 'Done'? I can give it nonsense and it will say 'Done'. Can I see a list of currently running services? Can is see a list of services that I can manage with the service command?
4. What's the difference between 'service stop_dnsmasq' and 'service disable dnsmasq'? ... I have also seen it written 'serivce disable_dnsmasq' i.e. with and without the underscore. All 'service' ever tells me is 'Done'.
5. Should I just give up on it and statically configure the IP on each media bridge client? Oddly, when I do this, the media bridge clients in the 'Network Map' --> 'Client List' on the main router show up as having 'Manual' assignment, but if they get their address via DHCP they show up as 'Static'. I thought it would be the other way around, but I'm not particularly concerned. Maybe it's because they are connecting through the media bridge and that is static.
Any help would be greatly appreciated.
Thanks,
James.
The clients on the media bridge have issues getting the correct IP and gateway using DHCP.
**** Main Router
Asus 1900P running Merlin 384.7_2
Connects to WAN.
Wired and wireless clients.
IP 192.168.1.1
**** Media Bridge
RT-AC68P running Merlin 384.7_2
Media Bridge Mode.
Wireless connection back to Main Router.
Wired Clients only.
IP 192.168.1.2 (statically assigned)
Default GW: 192.168.1.1 (static)
Subnet mask: 255.255.255.0
DNS: Blank.
Both routers have 'Enable JFFS custom scripts and configs' set to YES.
On the Main router I have DHCP enabled, the pool starts at 192.168.1.3 and ends at 192.168.1.254
The Default gateway and 'DNS Server 1' are set to 192.168.1.1 (this is all under LAN --> DHCP server, to be clear, not talking about the WAN side)
I have Manually assigned 4 IP's starting at 192.168.1.2 through 192.168.1.5
192.168.1.2 is the Media Bridge and it has its IP statically assigned, but it's in the manual reservation list because that's what populates etc/hosts.dnsmasq on the main router and lets me resolve the media bridge hostanme.
The clients with manual IP reservations, that connect to the main router, either wired or wireless, always seem to get the correct IP/Gateway via DHCP.
There is a Win 10 client that connects via the media bridge and this always seems to have problems with both IP and gateway.
If dnsmasq is running on the media bridge AND main router, and I do a DHCP release and renew from the Win 10 pc, then I see something like this in the logs of the media bridge - edited/formatted for clarity:
Code:
dnsmasq-dhcp[245]: DHCPREQUEST(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[245]: DHCPACK(br0) 192.168.1.254 ma:ca:dd:re:ss:01 win10pc
dnsmasq-dhcp[245]: DHCPRELEASE(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[245]: DHCPDISCOVER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[245]: DHCPOFFER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[245]: DHCPREQUEST(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[245]: DHCPACK(br0) 192.168.1.254 ma:ca:dd:re:ss:01 win10pc
and I see this from the main router:
Code:
dnsmasq-dhcp[249]: DHCPDISCOVER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPOFFER(br0) 192.168.1.4 ma:ca:dd:re:ss:01 // this is what I want
dnsmasq-dhcp[249]: DHCPREQUEST(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPNAK(br0) 192.168.1.254 ma:ca:dd:re:ss:01 wrong server-ID
From what I have read and the results I'm seeing, it appears like I need to stop dnsmasq on the media bridge, even though there is no way that I can see to do this through the admin UI.
If I ssh into the media bridge and stop the service with 'service stop_dnsmasq' and repeat the process above I see this in the logs of the main router:
Code:
dnsmasq-dhcp[249]: DHCPDISCOVER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPOFFER(br0) 192.168.1.4 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPDISCOVER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPOFFER(br0) 192.168.1.4 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPDISCOVER(br0) 192.168.1.254 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPOFFER(br0) 192.168.1.4 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPREQUEST(br0) 192.168.1.4 ma:ca:dd:re:ss:01
dnsmasq-dhcp[249]: DHCPACK(br0) 192.168.1.4 ma:ca:dd:re:ss:01 win10pc
And this seems to get the win10pc to take the correct IP and gateway. However I lose all this on the reboot of the media bridge when the dnsmasq service restarts.
I tried 'service disable_dnsmasq' but that didn't help either. Then I resorted to stopping the service in the services-start jffs user script. (Exactly what @HariSeldon did as detailed in the last post on here: https://www.snbforums.com/threads/rt-ac68u-in-media-bridge-mode-responding-to-dhcp-requests.48259/)
The problem here is that dnsmasq has already started and given the bad IP/GW to win10pc before the services-start script executes and stops it - I can see that happening in the logs.
Then the dnsmasq is stopped on the media bridge but win10pc is left in a bad state thinking its gateway is 192.168.1.2 and it can't reach the dnsmasq service on the main router to rectify the situation.
My not so elegant solution to this is to pollute the dnsmasq.conf.add file with something that would stop it from ever starting: "dhcp-range="
This is what I see in the media bridge logs on restart and everything seem to work fine:
Code:
custom_config: Appending content of /jffs/configs/dnsmasq.conf.add.
dnsmasq[417]: bad dhcp-range at line 19 of /etc/dnsmasq.conf
dnsmasq[417]: FAILED to start up
My questions are:
1. Am I taking totally the wrong approach to this setup?
2. If Q1 = No, Is there a better way to prevent dnsmasq from starting on the media bridge - is there a GUI setting I'm missing or is there a config option in a file somewhere to achieve this?
3. Does the 'service' command on the router ever say anything other than 'Done'? I can give it nonsense and it will say 'Done'. Can I see a list of currently running services? Can is see a list of services that I can manage with the service command?
4. What's the difference between 'service stop_dnsmasq' and 'service disable dnsmasq'? ... I have also seen it written 'serivce disable_dnsmasq' i.e. with and without the underscore. All 'service' ever tells me is 'Done'.
5. Should I just give up on it and statically configure the IP on each media bridge client? Oddly, when I do this, the media bridge clients in the 'Network Map' --> 'Client List' on the main router show up as having 'Manual' assignment, but if they get their address via DHCP they show up as 'Static'. I thought it would be the other way around, but I'm not particularly concerned. Maybe it's because they are connecting through the media bridge and that is static.
Any help would be greatly appreciated.
Thanks,
James.
Last edited: