Hi, I’m new to Mikrotik and I’ll try to make this as brief as possible. We are replacing pfSense with Mikrotik and I encountered a single problem that is preventing me to accomplish my task. It’s a single static route that is making my head ache.
Topology:
Internet GW <—> pfSense <—> Wireless (Tropos) GW <— mesh —> AP7 <— subinterface —> Webcam
Internet GW: 172.16.6.1
pfSense: 172.16.6.10/24 (eth0), 10.14.4.1/23 (eth1)
Wireless GW: 10.14.4.14 (eth0), 10.14.4.16 (wlan0)
AP7: 10.14.4.18 (wlan0)
Mesh (APs): 10.14.4.10 → 10.14.4.30
AP Sub-interface: 10.14.7.1/24 (eth0)
Webcam: 10.14.7.3 (eth0)
To be able to access the Webcam, you must add a static route to pfSense as:
10.14.7.0/24 → GW 10.14.4.18 (or any other AP, since a routing table is distributed throughout the entire mesh by Tropos itself
With pfSense, everything works well. If you remove the static route, you cannot access the Webcam. Webcam can however be accessed within the Wireless network since the routing table is automatically distributed among all the APs within the mesh.
When I switch pfSense with Mikrotik RB1100ah (RouterOS 5.16), a strange problem arises.
First the configuration:
2 interfaces:
2 R WAN
6 R Wifi
IP Addresses:
1 172.16.6.10/24 172.16.6.0 WAN
2 10.14.4.1/23 10.14.4.0 Wifi
NAT is enabled on both interfaces (add action=masquerade chain=srcnat)
Hotspot is enabled, and just to be sure, ip-binding is enabled for 10.14.7.0/24 and for all AP IPs.
This is routing table:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 172.16.6.1 1
1 ADC 10.14.4.0/23 10.14.4.1 Wifi 0
2 A S 10.14.7.0/24 10.14.4.1 10.14.4.18 1
3 ADC 172.16.6.0/24 172.16.6.10 WAN 0
Now, the funny part:
- Static route enabled (as shown above):
[admin@MikroTik] /ip route> /ping 10.14.7.3
HOST SIZE TTL TIME STATUS
10.14.7.3 56 61 10ms
10.14.7.3 56 61 6ms
[admin@MikroTik] /ip route> /ping 10.14.4.14
HOST SIZE TTL TIME STATUS
10.14.4.14 timeout
[admin@MikroTik] /ip route> /ping 10.14.4.16
HOST SIZE TTL TIME STATUS
10.14.4.16 56 64 0ms
10.14.4.16 56 64 0ms
10.14.4.16 56 64 0ms
- Static route disabled:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 172.16.6.1 1
1 ADC 10.14.4.0/23 10.14.4.1 Wifi 0
2 X S 10.14.7.0/24 10.14.4.1 10.14.4.18 1
3 ADC 172.16.6.0/24 172.16.6.10 WAN 0
[admin@MikroTik] /ip route> /ping 10.14.4.14
HOST SIZE TTL TIME STATUS
10.14.4.14 timeout
10.14.4.14 56 64 8ms
10.14.4.14 timeout
10.14.4.14 56 64 8ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 timeout
10.14.4.14 56 64 8ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 1ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
10.14.4.14 56 64 0ms
And no more timeouts after secondary ping and forth…
My question is, why is the static route, which has a different subnet from Wifi, preventing a successful ping of 10.14.4.14, which is the eth0 interface of Tropos GW AP? And why would there be ping losses to begin with, since it’s a physical cable connection?
Any idea would be highly appreciated. I might be doing something wrong with the routing as well.
Edited to add:
May I just add that debugging eth0 interface on Tropos GW does not show up any ICMP requests while static route is enabled. By this fact I assume that it’s not a routing problem on Tropos GW of any kind.
And I also tried adding the static route for 10.14.4.14/32 for WifiLasko interface and still no luck.
Thanks,
Gorazd,
Slovenia