I have 8 wrt54gl's running openwrt + batman. I set all to auto channel + ad-hoc.
I'm trying this startup script. ifconfig eth0.0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & ifconfig wl0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & batmand eth0.0 eth0.1 wl0 & iptables -t filter -I INPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT & iptables -t filter -I OUTPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT &
I did a kismet scan and only 4 are showing up. All 8 have wlan lights blinking in sync.
Should I manually set the channel?
Do the essids matter?
Should the lan ip be the same as the ip I give the batman device?
do I need to use wan ips?
One shows up- Channel 10 ap- Name : mobileWRT │ │|│ │ │|│ SSID : mobileWRT │ │|│ Server : localhost:2501 │ │ │ BSSID : 00:1C:10:BC:AC:68 │ │ │ Carrier : IEEE 802.11g │ │ │ Manuf : Unknown │ │ │ Max Rate: 54.0 │ │ │ BSS Time: 2b688188 │ │ │ Max Seen: 1000 kbps │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ Latest : Sun Mar 9 19:40:38 2008 │ │ │ Clients : 0 │ │ │ Type : Access Point (infrastructure) │ └─│ Info : │ ┌─│ Channel : 10 │ │ │
3 ad-hocs │-│ Name : Adhoc networks │ │ │|│ Networks: 3 │ │ │|│ Min Loc : N/A │ │ │|│ Max Loc : N/A │ │ │ │ Range : N/A │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ │ │ │ │ Network 1 │ │ │ │ SSID : OpenWrt │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : 42:19:24:94:DF:5E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 11.0 Clients : 15 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 1 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
Network 2 │ │ │|│ SSID : project5 │ │ │|│ Server : localhost:2501 │ │ │ │ BSSID : 4E:FC:E3:89:31:9E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 54.0 │ │ │ │ BSS Time: e480e183 │ │ │ │ Max Seen: 1000 kbps │ │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ │ Latest : Sun Mar 9 20:35:55 2008 │ │ │ │ Clients : 5 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │+│ Encrypt : None
Network 3 │ │ │ │ SSID : mobileWRT │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : D6:4E:A1:DA:E5:55 │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │+│ Max Rate: 11.0 Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
hi -
you are experiencing bssid cell-splitting -
in order to communicate all routers must use the same channel, essid and bssid.
channels must be set manually - auto only works for stations in infrastructure mode - and you have to set the channel on the accesspoint, of course.
dondavis@reglue.org wrote:
I have 8 wrt54gl's running openwrt + batman. I set all to auto channel + ad-hoc.
I'm trying this startup script. ifconfig eth0.0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & ifconfig wl0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & batmand eth0.0 eth0.1 wl0 & iptables -t filter -I INPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT & iptables -t filter -I OUTPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT &
I did a kismet scan and only 4 are showing up. All 8 have wlan lights blinking in sync.
Should I manually set the channel?
Do the essids matter?
Should the lan ip be the same as the ip I give the batman device?
do I need to use wan ips?
One shows up- Channel 10 ap- Name : mobileWRT │ │|│ │ │|│ SSID : mobileWRT │ │|│ Server : localhost:2501 │ │ │ BSSID : 00:1C:10:BC:AC:68 │ │ │ Carrier : IEEE 802.11g │ │ │ Manuf : Unknown │ │ │ Max Rate: 54.0 │ │ │ BSS Time: 2b688188 │ │ │ Max Seen: 1000 kbps │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ Latest : Sun Mar 9 19:40:38 2008 │ │ │ Clients : 0 │ │ │ Type : Access Point (infrastructure) │ └─│ Info : │ ┌─│ Channel : 10 │ │ │
3 ad-hocs │-│ Name : Adhoc networks │ │ │|│ Networks: 3 │ │ │|│ Min Loc : N/A │ │ │|│ Max Loc : N/A │ │ │ │ Range : N/A │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ │ │ │ │ Network 1 │ │ │ │ SSID : OpenWrt │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : 42:19:24:94:DF:5E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 11.0 Clients : 15 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 1 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
Network 2 │ │ │|│ SSID : project5 │ │ │|│ Server : localhost:2501 │ │ │ │ BSSID : 4E:FC:E3:89:31:9E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 54.0 │ │ │ │ BSS Time: e480e183 │ │ │ │ Max Seen: 1000 kbps │ │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ │ Latest : Sun Mar 9 20:35:55 2008 │ │ │ │ Clients : 5 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │+│ Encrypt : None
Network 3 │ │ │ │ SSID : mobileWRT │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : D6:4E:A1:DA:E5:55 │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │+│ Max Rate: 11.0 Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
B.A.T.M.A.N mailing list B.A.T.M.A.N@open-mesh.net https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
Thank you. That's pretty fundamental I imagine. I thought that the bssid (mac addresses) would have been expected to be different for tracking purposes.
Will the startup script I mentioned interfere with anything? Do I need to set lan IP? wan IP? do I set all eth0 eth0.1 wl0 br-lan all to the same ip?
Thank you.
On Mon, 2008-03-10 at 10:57 +0100, elektra wrote:
hi -
you are experiencing bssid cell-splitting -
in order to communicate all routers must use the same channel, essid and bssid.
channels must be set manually - auto only works for stations in infrastructure mode - and you have to set the channel on the accesspoint, of course.
dondavis@reglue.org wrote:
I have 8 wrt54gl's running openwrt + batman. I set all to auto channel + ad-hoc.
I'm trying this startup script. ifconfig eth0.0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & ifconfig wl0 103.0.0.* netmask 255.0.0.0 broadcast 103.255.255.255 & batmand eth0.0 eth0.1 wl0 & iptables -t filter -I INPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT & iptables -t filter -I OUTPUT 2 -p udp --dport 1966 --sport 1966 -j ACCEPT &
I did a kismet scan and only 4 are showing up. All 8 have wlan lights blinking in sync.
Should I manually set the channel?
Do the essids matter?
Should the lan ip be the same as the ip I give the batman device?
do I need to use wan ips?
One shows up- Channel 10 ap- Name : mobileWRT │ │|│ │ │|│ SSID : mobileWRT │ │|│ Server : localhost:2501 │ │ │ BSSID : 00:1C:10:BC:AC:68 │ │ │ Carrier : IEEE 802.11g │ │ │ Manuf : Unknown │ │ │ Max Rate: 54.0 │ │ │ BSS Time: 2b688188 │ │ │ Max Seen: 1000 kbps │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ Latest : Sun Mar 9 19:40:38 2008 │ │ │ Clients : 0 │ │ │ Type : Access Point (infrastructure) │ └─│ Info : │ ┌─│ Channel : 10 │ │ │
3 ad-hocs │-│ Name : Adhoc networks │ │ │|│ Networks: 3 │ │ │|│ Min Loc : N/A │ │ │|│ Max Loc : N/A │ │ │ │ Range : N/A │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ │ │ │ │ Network 1 │ │ │ │ SSID : OpenWrt │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : 42:19:24:94:DF:5E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 11.0 Clients : 15 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 1 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
Network 2 │ │ │|│ SSID : project5 │ │ │|│ Server : localhost:2501 │ │ │ │ BSSID : 4E:FC:E3:89:31:9E │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │ │ Max Rate: 54.0 │ │ │ │ BSS Time: e480e183 │ │ │ │ Max Seen: 1000 kbps │ │ │ │ First : Sun Mar 9 19:34:06 2008 │ │ │ │ Latest : Sun Mar 9 20:35:55 2008 │ │ │ │ Clients : 5 │ │ │ │ Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │+│ Encrypt : None
Network 3 │ │ │ │ SSID : mobileWRT │ │ │ │ Server : localhost:2501 │ │ │ │ BSSID : D6:4E:A1:DA:E5:55 │ │ │ │ Carrier : IEEE 802.11g │ │ │ │ Manuf : Unknown │ │ │+│ Max Rate: 11.0 Type : Ad-hoc │ │ │ │ Info : │ │ │ │ Channel : 11 │ │ │ │ Privacy : No │ │ │ │ Encrypt : None
B.A.T.M.A.N mailing list B.A.T.M.A.N@open-mesh.net https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
B.A.T.M.A.N mailing list B.A.T.M.A.N@open-mesh.net https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
Donald Davis wrote:
Thank you. That's pretty fundamental I imagine. I thought that the bssid (mac addresses) would have been expected to be different for tracking purposes.
The Mac of each card is still present, of course. The BSSID is necessary to tell whether a node logically belongs to a WiFi cell or not. Note that the process of negotiating the BSSID is error prone. Not if you use only WRTs, but if you want other cards to connect to the ad-hoc cell. In order to make your network stable you should fix the BSSID manually, which is a hack available for OpenWRT. Check out with your favorite search engine.
Will the startup script I mentioned interfere with anything?
No.
Do I need to set lan IP? wan IP?
If you want to use them for networking on layer 3 of the OSI model - of course! Even if you want to bridge them you should always assign an IP address - at least for the bridge - for maintenance purposes, in order to access the device.
Btw.: IANA has assigned port 4305 for the newer versions of Batman. So if you are going to update to Experimental or Beta open the firewall for udp ports 4305 and 4306 instead of 1966. 4305 is for protocol messages, 4306 is used for tunneling traffic to the gateway. If you want to use the VIS server, open port 4307 also.
cu elektra
Use individual IPs for each interface! If you want to use batman on all interfaces, assign IPs out of the mesh IP subnet range for each interface.
cu elektra
b.a.t.m.a.n@lists.open-mesh.org