Community discussions

MikroTik App
 
fsjunior
just joined
Topic Author
Posts: 5
Joined: Wed Nov 18, 2015 5:07 pm

Gateworks Cambria + Routerboard RB 133 + Wireless

Wed Nov 18, 2015 6:12 pm

Hi guys,

I'm trying to get a Gateworks Cambria (with OpenWRT) to connect with a RB 133 via wireless. I configurated the RB 133 [1] (5.26 RouterOS) in ap bridge mode and the Cambria as client via Luci.

The Cambria connects to RB133. But a strange thing happens: If I configure the wireless to use the same bridge of the ethernet ports in cambria, there is a lot of error messages and it constantly disconnects.
00:01:13 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:13 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:13 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:13 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:13 wireless,info wlan1: data from unknown device YY:YY:YY:YY:YY:YY, sent deauth
00:01:13 wireless,info wlan1: data from unknown device YY:YY:YY:YY:YY:YY, sent deauth
00:01:13 wireless,info wlan1: data from unknown device YY:YY:YY:YY:YY:YY, sent deauth
00:01:13 wireless,info wlan1: data from unknown device YY:YY:YY:YY:YY:YY, sent deauth
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: reassociating
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: disconnected, ok
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: connected
00:01:14 wireless,info wlan1: data from unknown device ZZ:ZZ:ZZ:ZZ:ZZ:ZZ, sent deauth
00:01:14 wireless,info wlan1: data from unknown device ZZ:ZZ:ZZ:ZZ:ZZ:ZZ, sent deauth
00:01:14 wireless,info wlan1: data from unknown device ZZ:ZZ:ZZ:ZZ:ZZ:ZZ, sent deauth
00:01:14 wireless,info wlan1: data from unknown device ZZ:ZZ:ZZ:ZZ:ZZ:ZZ, sent deauth
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: reassociating
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: disconnected, ok
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: connected
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device WW:WW:WW:WW:WW:WW, sent deauth
00:01:14 wireless,info wlan1: data from unknown device WW:WW:WW:WW:WW:WW, sent deauth
00:01:14 wireless,info wlan1: data from unknown device WW:WW:WW:WW:WW:WW, sent deauth
00:01:14 wireless,info wlan1: data from unknown device WW:WW:WW:WW:WW:WW, sent deauth
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: reassociating
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: disconnected, ok
00:01:14 wireless,info AA:BB:BB:BB:BB:BB@wlan1: connected
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:14 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:15 wireless,info AA:BB:BB:BB:BB:BB@wlan1: reassociating
00:01:15 wireless,info AA:BB:BB:BB:BB:BB@wlan1: disconnected, ok
00:01:15 wireless,info AA:BB:BB:BB:BB:BB@wlan1: connected
00:01:15 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:15 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:15 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
00:01:15 wireless,info wlan1: data from unknown device XX:XX:XX:XX:XX:XX, sent deauth
Note that there is different Mac addresses. I found that these mac are mac from ethernets in my network! I think that Cambria is trying to forward (via the bridge interface) the data from ethernet to wireless but for some reason the routeros is refusing to receive.

If I disconnect cambria from my ethernet network, the connection becomes "stable" (as there is no packet from other sources being transmitted).

Here the configuration of the routeros:
[admin@MikroTik] > interface wireless print detail
Flags: X - disabled, R - running 
 0  R name="wlan1" mtu=1500 mac-address=00:30:1A:46:19:59 arp=enabled interface-type=Atheros AR5413 mode=bridge ssid="cambria" frequency=2422 band=2ghz-b channel-width=20mhz scan-list=default wireless-protocol=any antenna-mode=ant-a wds-mode=disabled 
      wds-default-bridge=bridge1 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@MikroTik] 
From openwrt:
root@OpenWrt:~# cat /etc/config/wireless 

config 'wifi-device' 'radio1'
	option 'type' 'atheros'
	option 'macaddr' '00:30:1a:46:12:2c'
	option 'diversity' '0'
	option 'txantenna' '1'
	option 'rxantenna' '1'
	option 'disabled' '0'
	option 'chanbw' '10'
	option 'channel' '3'
	option 'txpower' '0'

config 'wifi-iface'
	option 'encryption' 'none'
	option 'device' 'radio1'
	option 'ssid' 'cambria'
	option 'mode' 'sta'
	option 'network' 'lan'

root@OpenWrt:~# 
My objective is to connect Cambria and RB 133 via wireless in a bridge mode, as a ethernet LAN, where every packet from ethernet from RB or will be retransmitted to cambria and vice versa.

So, I have some questions:

There is a know incompatibility with openwrt/cambria with routeros/routerboard?

Also, if not, someone have a hint of how can I configure both wireless? Maybe, there is a way to enable a "promiscuous" mode in routerboard? I don't understand very well the 802.11, but maybe a way to set the wireless from OpenWRT to use the mac address from card instead of ethernet devices?

Regards,

PS. I don't know if this is important, but I use DL915 card from doodlelabs.

[1] I know that RB 133 is obsolete, actually I will use a 493G in production. The 133 is only for test purpose.
 
fsjunior
just joined
Topic Author
Posts: 5
Joined: Wed Nov 18, 2015 5:07 pm

Re: Gateworks Cambria + Routerboard RB 133 + Wireless

Mon Nov 30, 2015 10:05 pm

I made some progress configuring both Cambria and RB.

I realized what I did wrong in the first place: I must create another interface to wireless connection. If I bridge ethernet and wireless, the data packets from ethernet will be forwarded "as is" to wireless, with wrong MAC Address.

So, nice! I made a connection between both and the connection becomes stable.

Also, I configurated an IP in wlan from RB 133 (running as AP) and set a static IP to wwan interface in Cambria. So, now I have another problem:

I can ping the IP in RouterOS/RB from cambria, but from RB I cannot find the cambria IP.

Let me explain with this incredible good looking diagram:

Let me explain with this diagram:

[X]---[AP]-( )-[STA]---[Y]


AP is the RB 133 and STA is Cambria client. They're connected via wifi. I can make STA ping AP and X. If I configure relayd in cambria, I can make even Y ping AP and X.

See:
root@OpenWrt:~# ping -I br-wwan 192.168.0.130
PING 192.168.0.130 (192.168.0.130): 56 data bytes
64 bytes from 192.168.0.130: seq=0 ttl=64 time=2.382 ms
64 bytes from 192.168.0.130: seq=1 ttl=64 time=1.654 ms
^C
--- 192.168.0.130 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.654/2.018/2.382 ms
root@OpenWrt:~# 
But I cannot make X or AP ping STA or Y (see attachment).


I looked everywhere but I cannot figure what is happening.

Someone can help me?
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 37 guests