Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created March 11, 2013 07:27
Show Gist options
  • Save boxysean/5132531 to your computer and use it in GitHub Desktop.
Save boxysean/5132531 to your computer and use it in GitHub Desktop.
getting closer to a batman mesh, but need some advice to push it through

I'm testing out a setup in my lab but am having trouble configuring it correctly! I've tried a lot of variations of the setup, read the documentation, and went through the mailing list to see what I'm doing wrong, but can't figure it out.

I followed the sophisticated setup and added ethernet links to it, possibly in a wrong way. I read somewhere that ethernet interfaces must be added to batman as bridges. (Side note: this causes my dmesg output to complain about too small of MTU for the ethernet interfaces but I can't seem to raise the bridge MTU to 1528 like it suggests.)

Network diagram:

       wlan0 AP      br-mesh1 --- eth0
             \      /                 \
              <veng>                   <roa>
                    \                       \
                     wlan0-1 (ch 1)          wlan0 (ch 11)
                                            /
                                           |
                                           |
                                           |
                                       [my_bssid]
                                           |
                                           |
                                           |
                                            \
wlan0 AP          wlan0-1 (ch 6)             wlan0 (ch 11)
     \           /                          /
      <skewville>                   <banksy>
                 \                 /
                  br-mesh1 --- eth0

Looking at the originator tables I see now that indeed all nodes see each other on layer 2, but I'm unable to ping the other nodes on layer 3 except between banksy and roa.

Devices roa and banksy are NanoStation M2s, and skewville and veng are WNDR3700v2s.

== veng's configuration

root@brooklynnet-veng:# batctl if wlan0-1: active br-mesh1: active root@brooklynnet-veng:# batctl o [B.A.T.M.A.N. adv 2012.3.0, MainIF/MAC: br-mesh1/c6:3d:c7:a3:a9:70 (bat0)] Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ... dc:9f:db:05:31:6a 0.640s (217) dc:9f:db:05:31:70 [ br-mesh1]: dc:9f:db:05:31:70 (217) a2:21:b7:9b:5a:37 0.980s (192) dc:9f:db:05:31:70 [ br-mesh1]: dc:9f:db:05:31:70 (192) dc:9f:db:05:31:70 0.470s (255) dc:9f:db:05:31:70 [ br-mesh1]: dc:9f:db:05:31:70 (255) root@brooklynnet-veng:~# brctl show bridge name bridge id STP enabled interfaces br-mesh1 8000.c63dc7a3a970 no eth0 br-lan 8000.3e71c7ec4ec3 no wlan0 bat0

== roa's configuration

root@brooklynnet-roa:# batctl if wlan0: active br-mesh1: active root@brooklynnet-roa:# batctl o [B.A.T.M.A.N. adv 2012.3.0, MainIF/MAC: br-mesh1/dc:9f:db:05:31:70 (bat0)] Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ... dc:9f:db:05:31:6a 0.000s (235) dc:9f:db:04:31:6a [ wlan0]: dc:9f:db:04:31:6a (235) c6:3d:c7:a3:a9:70 0.590s (255) c6:3d:c7:a3:a9:70 [ br-mesh1]: c6:3d:c7:a3:a9:70 (255) dc:9f:db:04:31:6a 0.480s (236) dc:9f:db:04:31:6a [ wlan0]: dc:9f:db:04:31:6a (236) a2:21:b7:9b:5a:37 0.380s (208) dc:9f:db:04:31:6a [ wlan0]: dc:9f:db:04:31:6a (208) root@brooklynnet-roa:~# brctl show bridge name bridge id STP enabled interfaces br-mesh1 8000.dc9fdb053170 no eth0 br-lan 8000.9edf77003b02 no bat0

== banksy's configuration

root@brooklynnet-banksy:# batctl if wlan0: active br-mesh1: active root@brooklynnet-banksy:# batctl o [B.A.T.M.A.N. adv 2012.3.0, MainIF/MAC: br-mesh1/dc:9f:db:05:31:6a (bat0)] Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ... dc:9f:db:04:31:70 0.550s (247) dc:9f:db:04:31:70 [ wlan0]: dc:9f:db:04:31:70 (247) a2:21:b7:9b:5a:36 0.060s (255) a2:21:b7:9b:5a:36 [ br-mesh1]: a2:21:b7:9b:5a:36 (255) c6:3d:c7:a3:a9:70 0.840s (214) dc:9f:db:04:31:70 [ wlan0]: dc:9f:db:04:31:70 (214) a2:21:b7:9b:5a:37 0.860s (255) a2:21:b7:9b:5a:36 [ br-mesh1]: a2:21:b7:9b:5a:36 (255) dc:9f:db:05:31:70 0.220s (247) dc:9f:db:04:31:70 [ wlan0]: dc:9f:db:04:31:70 (247) root@brooklynnet-banksy:~# brctl show bridge name bridge id STP enabled interfaces br-mesh1 8000.dc9fdb05316a no eth0 br-lan 8000.a67bb90b22b7 no bat0

== skewville's configuration

root@brooklynnet-skewville:# batctl if wlan0-1: active br-mesh1: active root@brooklynnet-skewville:# batctl o [B.A.T.M.A.N. adv 2012.3.0, MainIF/MAC: wlan0-1/a2:21:b7:9b:5a:37 (bat0)] Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ... dc:9f:db:05:31:6a 0.010s (255) dc:9f:db:05:31:6a [ br-mesh1]: dc:9f:db:05:31:6a (255) c6:3d:c7:a3:a9:70 0.380s (185) dc:9f:db:05:31:6a [ br-mesh1]: dc:9f:db:05:31:6a (185) dc:9f:db:05:31:70 0.750s (213) dc:9f:db:05:31:6a [ br-mesh1]: dc:9f:db:05:31:6a (213) root@brooklynnet-skewville:~# brctl show bridge name bridge id STP enabled interfaces br-mesh1 8000.a221b79b5a36 no eth0 br-lan 8000.36c830416806 no wlan0 bat0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment