R
R
Roman prV2020-03-15 11:16:40
network hardware
Roman prV, 2020-03-15 11:16:40

How to access Samba server?

The main router1 (TP-LINK TL-WR841 (internal ip 192.168.0.1)) has Internet access and DHCP is enabled. The second router2 (sagemcom [email protected] 2804 v5 (internal ip 192.168.1.1)) carries a samba server.
DHCP server is disabled on router2.
Connections:
1) Router1-Router2 (LAN to LAN). Router1 --- 192.168.0.1 Router2 --- 192.168.1.1
2) Router1-UbuntuPC. PC --- 192.168.0.111
3) Router2-UbuntuPC PC --- 192.168.1.2
There is access to the samba server only when connected to the router2 network. It is necessary that when connecting to router 1 or 2 there should be an Internet connection and access to the samba server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Karpion, 2020-03-15
@Karpion

The answer depends on why you need a second router at all.
As a first approximation, I would replace the second router with a switch with the required number of ports (nowadays it is quite inexpensive). Plug the switch into the first router with one port - and everything works. (The first router must have cable ports for LAN, not just WiFi and a cable port to the outside.)
Connecting "LAN-LAN" routers is problematic - in the default setting, both run a DHCP server, and having two DHCP servers on the same network - you need a complex setup, without it it will be very bad.
Just in case, I will inform you that routers usually can work in switch mode. But this is not a standard mode, it must be configured.

R
ru6ak, 2020-03-15
@ru6ak

You do the same essence on the first and second (for example, 192.168.1.0/24)
Assign different IPs, for example (for example, 192.168.1.1 and 192.168.1.2)
On the second, disable DHCP, on the first, configure DHPC for the range (for example, 192.168.1.10-192.168.100)
You connect routers lan-lan.
Voila, you have two routers on the same network.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question