Communicating devices behind different routers

PC (192.168.2.193) is on the main router (192.168.2.0/24)
TVBOX (192.168.1.4) on the secondary router (192.168.1.0/24)

Secondary router is connected to the main router via WAN port and firewall is disabled on the secondary router.

I want to access TVBOX from PC. How can I do that?

put everything on the same LAN, but it might not be desired.

@lleachii any help?

If you really need the 2nd router as a router you need to configure a static routing on the 1st router for the 2nd router LAN subnet.
Otherwise you can put all your devices on the same LAN as advised above, for that you can probably configure the 2nd router per "dumb AP" guidelines.

1 Like

yes this is exactly what I'm trying to do, could you share the steps required in uci or luci?

1 Like

tried this but didn't work. 192.168.2.100 is second router's IP on the main router

@psherman I'm not trying to create a dumb AP

Please show ip r output from both routers.
No pictures please.

main router:

root@modem:~# ip route list
default via 100.64.0.1 dev pppoe-wan
100.64.0.1 dev pppoe-wan scope link  src 100.64.12.74
192.168.1.0/24 via 192.168.2.100 dev br-lan
192.168.2.0/24 dev br-lan scope link  src 192.168.2.1

secondary router

root@router-sinan:~# ip route list
default via 192.168.2.1 dev wan  src 192.168.2.100
192.168.1.0/24 dev br-lan scope link  src 192.168.1.1
192.168.2.0/24 dev wan scope link  src 192.168.2.100

Looks good to me. What's the issue with the connection?

pinging from PC is not working

Pinging 192.168.1.4 with 32 bytes of data:
Reply from 192.168.2.100: Destination port unreachable.
Reply from 192.168.2.100: Destination port unreachable.
Reply from 192.168.2.100: Destination port unreachable.
Reply from 192.168.2.100: Destination port unreachable.

My understanding this is the result of disabling the firewall. Bring it back, check if you have forwarding properly configured between the zones, no need to use NAT.

1 Like

If your second router is connected to your first router, I would create an static route from the primary to the secondary (pointing at the WAN IP of the secondary), and in the secondary's Firewall, disable Masquerading for the WAN, and accept input from WAN to LAN. That should allow one to ping the other (both ways).

3 Likes

thank you @feliciano it worked

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.