I have computer with mikrotik OS, and two interfaces inside. One interface
is eher1 and second interface is wlan1. One PC computer is connected to
ether1 interface. Wlan1 interface is set to work in station mode and that
wireless interface is connected to PLANET WAP-4000 AP. This planet AP is
however connected (with ethernet cable) to zxyel HW660 router, which is gateway
to the internet (PPoE connection). Everything is connected like on picture
on link below.
What i am trying to accomplih ? I want that PC (2.2/24) can reach the internet,
but i am doing something wrong. When i look at the routes on mikrotik station, there
are directly connected networks (1.0) and (2.0), and also default gateway 0.0.0.0/0
to (1.1) which is zyxel.
When i use ping command from PC, i have reply
from mikrotik ethernet interface (2.1), mikrotik wireless interface (1.2), but
i don’t have reply from planet AP (1.3). Why is that ?
When i ping from zyxel, i have reply prom PLANET-AP, mikrotik wireless interface,
but not from mikrotik ethernet interface ?
Also from mikrotik station i can normally ping servers on the internet.
If anyone have idea what i am doing wrong, please help ?
I will presume the WAP-4000 knows about the x.x.1.x net., since the MT box connects to that net. But it probably doesn’t know how to find the x.x.2.x net. You will need to route that localnet set (x.x.2.x) on the WAP-4000 to the MT router. I am not familiar with that equipment or OS, so with that part, I can offer no assistance.
Or you can masquerade the MT box as wlan1. That usually means a double-NAT tho. One here and another at the internet interface.
Yes, that must be the problem, because PLANET WAP4000 is only AP device and cannot learn about any other network but its own subnet. So i persume solution will be to replace this planet with other device with routing capabilities (other SOHO router, or maby another MT box).
You said that i need to masquerade wlan1. Can you instruct me how to do that ? Internet interface is already performing NAT.
Try this
/ip firewall nat
add chain=srcnat action=masquerade out-interface=wlan1
ADD: Insure you have the ip of the wap-4000 wlan interface (or the gateway for the wlan1 subnet) set as the default gateway in “/ip route”. This is also presuming the wlan1 interface is connected to the wap4000. If not, change to the appropriate interface name.
That is why I included the “or the gateway…” statement. After looking carefully at the drawing, I presumed the wap4000 may be bridged. Use the gateway of that localnet for the default route. If that is the Zyxel, then use that ip.