Basic static routing problem

Hello,

I have two RouterBOARD RB493G (RouterOS 6.22) which are connected together using R2SHPn radios. Here is the network topology:
Topology.png
My goal is to be able to ping PC-CLIENT from PC-ROBOT and vice-versa. Here is the configuration I did:

1. Create a bridge for all ethernet ports on each router.
2. Assign an IP address to the bridge and wireless interface on each router.

[admin@ROBOT] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                              
 0   192.168.2.1/24     192.168.2.0     wlan1                                  
 1   192.168.3.1/24     192.168.3.0     bridge2



[admin@BASE] > ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                
 0   192.168.1.1/24     192.168.1.0     bridge1                                  
 1   192.168.2.2/24     192.168.2.0     wlan1

3. Establish the wireless link using the nstreme protocol.

[admin@ROBOT] > interface wireless print 
Flags: X - disabled, R - running 
 0  R name="wlan1" mtu=1500 mac-address=00:0C:42:6E:18:87 arp=enabled 
      interface-type=Atheros AR92xx mode=ap-bridge ssid="Robot" 
      frequency=2462 band=2ghz-onlyn channel-width=20mhz scan-list=default 
      wireless-protocol=nstreme wds-mode=disabled wds-default-bridge=none 
      wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes 
      default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 
      hide-ssid=no security-profile=default compression=no



[admin@BASE] > interface wireless print 
Flags: X - disabled, R - running 
 0  R name="wlan1" mtu=1500 mac-address=00:0C:42:6E:18:99 arp=enabled 
      interface-type=Atheros AR92xx mode=station-bridge ssid="Robot" 
      frequency=2462 band=2ghz-b/g/n channel-width=20mhz scan-list=default 
      wireless-protocol=nstreme wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no 
      bridge-mode=enabled default-authentication=yes default-forwarding=yes 
      default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no security-profile=default 
      compression=no

4. Add one static route on each router.

[admin@ROBOT] > ip route print 
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  192.168.1.0/24                     192.168.2.2               1
 1 ADC  192.168.2.0/24     192.168.2.1     wlan1                     0
 2 ADC  192.168.3.0/24     192.168.3.1     bridge2                   0



[admin@BASE] > ip route print 
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADC  192.168.1.0/24     192.168.1.1     bridge1                   0
 1 ADC  192.168.2.0/24     192.168.2.2     wlan1                     0
 2 A S  192.168.3.0/24                     wlan1                     1

With that configuration, I’m not able to ping PC-ROBOT from PC-CLIENT and vice versa. Here are my ping results:

  • Ping 192.168.1.1 from ROBOT router: OK
  • Ping 192.168.2.2 from ROBOT router: OK
  • Ping 192.168.2.1 from BASE router: OK
  • Ping 192.168.3.1 from BASE router: Host unreachable from 1921.168.2.2
  • Ping 192.168.2.2 from PC-CLIENT: OK
  • Ping 192.168.2.1 from PC-CLIENT: OK
  • Ping 192.168.3.1 from PC-CLIENT: Host unreachable
  • Ping 192.168.2.1 from PC-ROBOT: OK
  • Ping 192.168.2.2 from PC-ROBOT: Timeout

There’s must be something very abvious that I’m doing wrong. Any help is very welcome!

Philippe

I think you have to:

BASE
ip route
del 2
add dst-address=192.168.3.0/24 gateway=192.168.2.1

Or enable RIP

/routing rip
set distribute-default=always redistribute-bgp=yes redistribute-connected=yes
redistribute-ospf=yes redistribute-static=yes
/routing rip interface
add send=v1-2

Thank you very much that solved my problem. I know that the static route must point to the next hop, but I though that I could just put the “output” interface name. Clearly I was wrong. Thank you again!

Philippe