I have two different LANs in my home network, (modem/switch) and (router).

A switch is connected to the modem, it provides access to my PC, that's the range. There's also a router connected to the modem, which provides wireless access to smartphones, tablets and another PC, that's the range.

The wireless PC (192.168.1.x) can access the Samba share on the wired PC (192.168.0.x), but the wired PC can't access the Samba share in the wireless PC. The wireless PC can ping the wired PC, but the wired PC can't ping the wireless PC, or the router.

I read that I have to add a route to the system, so he can "see" the other network, but I didn't succeed in this task. I hope that someone can point me in the right direction.

I'm running Debian Stretch on both computers, Samba is properly configured and the ports are open in the firewall of both systems.

ip route of the wired computer

default via dev enp3s0 proto static metric 100 dev enp3s0 proto kernel scope link src metric 100

ip route of the wireless computer

default via dev wlp1s0 proto static metric 600 dev wlp1s0 scope link metric 1000 dev wlp1s0 proto kernel scope link src metric 600
  • As always, the default gateway needs to be able to access both networks. – Ignacio Vazquez-Abrams Oct 29 '17 at 20:06
  • Can you add the output of ip route on both machines (wireless and wired) to your question? – xenoid Oct 29 '17 at 20:09
  • @IgnacioVazquez-Abrams That's what I'm asking how to do. – user803949 Oct 29 '17 at 20:23
  • @xenoid Added to the question. – user803949 Oct 29 '17 at 20:24

I ended up cascading my router in LAN-to-LAN.

I pluged the cable that comes out of the LAN port of the modem in the LAN port of the router, instead of the WAN port, and disabled DHCP in the router. Now all devices are in the same LAN.


And to explain why all devices need to be in the same LAN segment (no matter how you arrange your routers and switches to achieve this):

SMB is a broadcast protocol, that communicates by regularly sending broadcast packets. Unless you take explicit steps to route those packets between different LAN segements, or you explicitely use some other means to connect different LAN segments for SMB, that means that only devices in the same LAN segment (broadcast domain) will discover each other via SMB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy