All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +      X-wrt]
@ 2008-03-10  5:18 dondavis
  2008-03-10  9:57 ` elektra
  0 siblings, 1 reply; 11+ messages in thread
From: dondavis @ 2008-03-10  5:18 UTC (permalink / raw
  To: b.a.t.m.a.n



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








^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-10  5:18 dondavis
@ 2008-03-10  9:57 ` elektra
  2008-03-10 11:17   ` Donald Davis
  0 siblings, 1 reply; 11+ messages in thread
From: elektra @ 2008-03-10  9:57 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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
>
>   


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-10  9:57 ` elektra
@ 2008-03-10 11:17   ` Donald Davis
  2008-03-10 11:47     ` elektra
  0 siblings, 1 reply; 11+ messages in thread
From: Donald Davis @ 2008-03-10 11:17 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-10 11:17   ` Donald Davis
@ 2008-03-10 11:47     ` elektra
  2008-03-10 11:51       ` elektra
  0 siblings, 1 reply; 11+ messages in thread
From: elektra @ 2008-03-10 11:47 UTC (permalink / raw
  To: dondavis,
	The list for a Better Approach To Mobile Ad-hoc Networking

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-10 11:47     ` elektra
@ 2008-03-10 11:51       ` elektra
  0 siblings, 0 replies; 11+ messages in thread
From: elektra @ 2008-03-10 11:51 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +     X-wrt]
@ 2008-03-10 17:02 Donald Davis
  0 siblings, 0 replies; 11+ messages in thread
From: Donald Davis @ 2008-03-10 17:02 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Thank you very much.  Now I have an ad-hoc network if not a batman adhoc
network.
They all report no nodes in range.
In x-wrt I changed all the channels to 10, mode ad-hoc, essid project. I
set the lan i.p. to 103.0.0.* (the number of the router).

I also added a startup script but it doesn't seem to be run.  I have to
login via ssh and basically copy it:

iwconfig wl0 channel 10 essid project mode Ad-Hoc
ifconfig eth0.0 103.0.0.6 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0.1 103.0.0.6 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig wl0 103.0.0.6 netmask 255.0.0.0 broadcast 103.255.255.255
iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j
ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j
ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j
ACCEPT
batmand eth0.0 eth0.1 wl0 &


batman is then running and x-wrt (the web gui sees it's running)

However, it reports no nodes in sight.  If I run batman -d 4 eth0.0
eth0.1
wl0 I am only receiving data from that machine (same ip) if I grep -v
its
ip there's nothing except for "no nodes in range."

The routers are all connected I can ssh into any of them 3-8 but I can
only get internet if I'm attached to the router plugged in to the
internet.  I tried changing the preferred gateway to the machine
103.0.0.3
with an internet connection but it didn't work.

I didn't change the bssids as you recommended, but it seems there is no
bssid splitting.  (Oh, it reports 11 clients, I'm running six routers
right now...)

What should I see?  what should the ip range be?

│ Name    : project                                           
│ │
│ │
  │ │
│ │ SSID    : project
  │ │
│ │ Server  : localhost:2501
  │ │
│ │ BSSID   : 92:6E:ED:16:90:48
  │ │
│ │ Carrier : IEEE 802.11g
  │ │
│ │ Manuf   : Unknown
  │ │
│ │ Max Rate: 54.0
 Clients : 11                                                 │
│
│ │ Type    : Ad-hoc
  │ │
│ │ Info    :
  │ │
│ │ Channel : 10
  │ │
│ │ Privacy : No
  │ │
│ │ Encrypt : None
  │ │
│ │ Beacon  : 25600 (26.214400 sec)
 IP Type : UDP (4 octets)                                     │
│
│ │ IP Range: 103.0.0.5




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +      X-wrt]
@ 2008-03-10 23:15 dondavis
  2008-03-11  7:17 ` elektra
  0 siblings, 1 reply; 11+ messages in thread
From: dondavis @ 2008-03-10 23:15 UTC (permalink / raw
  To: b.a.t.m.a.n



I got batmand working with this startup script:
(but I lost internet connectivity, even setting the gateway to 103.0.0.3)


killall batmand
iwconfig wl0 channel 10 essid project mode Ad-Hoc
ifconfig eth0.0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0.1 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig wl0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
batmand eth0.0 eth0.1 wl0 eth0 br-lan &



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-10 23:15 [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze + X-wrt] dondavis
@ 2008-03-11  7:17 ` elektra
  2008-03-11 12:00   ` Donald Davis
  0 siblings, 1 reply; 11+ messages in thread
From: elektra @ 2008-03-11  7:17 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

I wrote: 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.

I don't see that here:

ifconfig eth0.0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0.1 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig wl0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255

And: Ports 4305-4307 are for the new versions of batman - which one are 
you using?





> I got batmand working with this startup script:
> (but I lost internet connectivity, even setting the gateway to 103.0.0.3)
>
>
> killall batmand
> iwconfig wl0 channel 10 essid project mode Ad-Hoc
> ifconfig eth0.0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0.1 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig wl0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> batmand eth0.0 eth0.1 wl0 eth0 br-lan &
>
>
> _______________________________________________
> 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
>
>   


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +   X-wrt]
  2008-03-11  7:17 ` elektra
@ 2008-03-11 12:00   ` Donald Davis
  2008-03-11 13:56     ` dondavis
  0 siblings, 1 reply; 11+ messages in thread
From: Donald Davis @ 2008-03-11 12:00 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking


On Tue, 2008-03-11 at 08:17 +0100, elektra wrote:
> I wrote: 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.
> 
> I don't see that here:
> 
> ifconfig eth0.0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0.1 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig wl0 *103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255
> 

OHHHH! Each interface!  I was still thinking each router.  My apologies.

so instead I'll try
ifconfig eth0 103.0.0.30 netmask 255.0.0.0 broadcast 103.255.255.255 # I
might leave out eth0.  I looked at netstat -rn and I believe setting the
ifconfig for eth0 might have hosed my Internet connection.  

ifconfig eth0.0 103.0.0.300 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0.1 103.0.0.31 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig wl0 103.0.0.3* netmask 255.0.0.0 broadcast 103.255.255.255

> And: Ports 4305-4307 are for the new versions of batman - which one are 
> you using?

batman 0.2 compatibility version 3

which visualization server program do you recommend?

Thank you.  


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze +    X-wrt]
  2008-03-11 12:00   ` Donald Davis
@ 2008-03-11 13:56     ` dondavis
  2008-03-11 14:07       ` side note " dondavis
  0 siblings, 1 reply; 11+ messages in thread
From: dondavis @ 2008-03-11 13:56 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Okay.  I went through and changed all the interfaces to separate ip's.
That didn't work.  I'm going to play around with changing individual
interface IP addresses but for right now  I did get the network up and
running with network connectivity.  (eth0.1 is the port the internet comes
in from.  I'm not changing its ip.)


This seems like a sufficient start up script. I don't know if you see any
immediate flaws.

killall batmand
iwconfig wl0 channel 10 essid project mode Ad-Hoc
ifconfig eth0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig eth0.0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
# ifconfig eth0.1 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
ifconfig wl0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
batmand br-lan &


netstat -rn from the gateway router returns:

Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
103.0.0.4       0.0.0.0         255.255.255.255 UH        0 0          0
br-lan
103.0.0.5       0.0.0.0         255.255.255.255 UH        0 0          0
br-lan
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0
eth0.1
103.0.0.0       0.0.0.0         255.255.255.0   U         0 0          0
br-lan
103.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 eth0
103.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
eth0.0
103.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 wl0
0.0.0.0         10.0.2.1        0.0.0.0         UG        0 0          0
eth0.1


The browser tells me (I've only got 3 routers up now):
BATMAN node	Gateway	Through
Originator 	(#/128): 	routers...
[B.A.T.M.A.N.
0.2,
MainIF/IP:
br-lan
103.0.0.3,
UT:
0d
0h24m]

103.0.0.4 	(125): 	(125)
103.0.0.5
(
3)

103.0.0.5 	(119): 	(119)
103.0.0.4
(
7)

cheers and thank you.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* side note Re: [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt  Kamikaze +    X-wrt]
  2008-03-11 13:56     ` dondavis
@ 2008-03-11 14:07       ` dondavis
  0 siblings, 0 replies; 11+ messages in thread
From: dondavis @ 2008-03-11 14:07 UTC (permalink / raw
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Again, many thanks.

I reread my last email and it seemed unclear.  Batman is working and I can
get to the internet by using batman to go from one router to another.

I'll need to work on using a visualization server and fine tuning now.

All the interfaces have the same mac address except for the wireless
interface.


br-lan    Link encap:Ethernet  HWaddr 00:1C:10:BC:AC:00
          inet addr:103.0.0.3  Bcast:103.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12802 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7623 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:645580 (630.4 KiB)  TX bytes:1160698 (1.1 MiB)

eth0      Link encap:Ethernet  HWaddr 00:1C:10:BC:AC:00
          inet addr:103.0.0.3  Bcast:103.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:590 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18105 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:514197 (502.1 KiB)  TX bytes:1247626 (1.1 MiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:1C:10:BC:AC:00
          inet addr:103.0.0.3  Bcast:103.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17484 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:979888 (956.9 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:1C:10:BC:AC:00
          inet addr:10.0.2.122  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:591 errors:0 dropped:0 overruns:0 frame:0
          TX packets:627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:503627 (491.8 KiB)  TX bytes:124554 (121.6 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wl0       Link encap:Ethernet  HWaddr 00:1C:10:BC:AC:02
          inet addr:103.0.0.3  Bcast:103.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12952 errors:0 dropped:0 overruns:0 frame:573
          TX packets:7623 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:862518 (842.3 KiB)  TX bytes:1221682 (1.1 MiB)
          Interrupt:2 Base address:0x5000



>
> This seems like a sufficient start up script. I don't know if you see any
> immediate flaws.
>
> killall batmand
> iwconfig wl0 channel 10 essid project mode Ad-Hoc
> ifconfig eth0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0.0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> # ifconfig eth0.1 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig wl0 103.0.0.3 netmask 255.0.0.0 broadcast 103.255.255.255
> iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> batmand br-lan &
>
>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-03-11 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10 23:15 [B.A.T.M.A.N.] b.a.t.m.a.n. + wrt54gl + OpenWrt Kamikaze + X-wrt] dondavis
2008-03-11  7:17 ` elektra
2008-03-11 12:00   ` Donald Davis
2008-03-11 13:56     ` dondavis
2008-03-11 14:07       ` side note " dondavis
  -- strict thread matches above, loose matches on Subject: below --
2008-03-10 17:02 Donald Davis
2008-03-10  5:18 dondavis
2008-03-10  9:57 ` elektra
2008-03-10 11:17   ` Donald Davis
2008-03-10 11:47     ` elektra
2008-03-10 11:51       ` elektra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.