I have a main (provider) router and a TpLink that i use as Ap+STA.
The main router has 192.168.1.1 ip and i want the tplink to use 192.168.1.200 ip.
The tplink wifi has a different SSID and different password.
To do all this i changed the lan interface ip, i joined the main router's wifi as a client, i changed the wan phyisical interface to the radio (the one that joined the main router's wifi) and i added to the lan's physical interfaces the client wifi and the ap wifi.
So what i've got is an ap that gets internet access from the main wifi but its clients aren't visible or pingable from the main network. For example, i have a samba server plugged in the ethernet port of the tplink and with my smarphone if i'm in the tplink wifi i can access it, if not i can't.
I want to be able to connect to any file sharing system and to connect to the configuration of any of the routers indipendently on what network i'm in. How i should do it?
Before flashing OpenWrt i used the WDS option while disabling DHCP on the tplink router but with openwrt i cannot replicate what i had before.
I don't quite understand your configuration. You might want to post these files from /etc/config/:
dhcp
network
wireless
Note that the wan interface on the OpenWrt device should be unused. All relevant interfaces should be part of its lan bridge.
WDS is a good solution for what you want to achieve, if supported by your devices.
However, often WDS is only compatible between firmware and hardware from the same vendor.
I cannot say if it will work in your case, just try it again once you are sure the rest of the config is correct.
but i realized ad the end that my technicolor tg789vac v2 TIM main router doesn't support static routes.
Edit:
i don't know if wds would work. The TIM Technicolor router has stock firmware and i cannot flash any version of openwrt. So there is no way to set the main router as AP(WDS).
Since WDS worked with the stock TP-Link firmware, I suggest to try this again under OpenWrt as follows.
option network specifies a single network interface the wireless interface is attached to.
Change this to 'lan'.
To enable WDS, add:
option wds '1'
option network 'lan' is OK, keep it.
Side note: you might want to add option country and set it to a value suitable for your location. However, this is not needed to make WDS work. Apply this change last, if at all.
You might want to disable the wan and wan6 interfaces.
Remove the wwan interface.
Disable DHCPv4, DHCPv6 and router advertisements for the lan interface:
option dhcpv6 'disabled'
option ra 'disabled'
option ignore '1'