Created
March 7, 2013 20:03
-
-
Save boxysean/5111299 to your computer and use it in GitHub Desktop.
The layer 2 batman mesh is working, but I can't seem to get a bridge from eth0 to wlan0 to go. WHAT I WANT: To create a route on this device to 10.0.0.0/8 over the bat0 or mesh bridge interface, in order to see my 10.0.3.0/24 that is over the wlan0 ad-hoc network and connected. Not sure how to do that. Followed the quick start guide. <http://www…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@brooklynnet-never:~# cat /etc/rc.local | |
# Put your custom commands here that should be executed once | |
# the system init finished. By default this file does nothing. | |
ifconfig wlan0 mtu 1528 | |
batctl if add wlan0 | |
ifconfig br-lan mtu 1528 | |
batctl if add br-lan | |
brctl addbr mesh-bridge | |
brctl addif mesh-bridge eth0 | |
brctl addif mesh-bridge bat0 | |
brctl addif mesh-bridge wlan0 | |
ifconfig wlan0 up | |
ifconfig eth0 up | |
ifconfig bat0 up | |
ifconfig mesh-bridge up | |
ifconfig bat0 up | |
exit 0 | |
root@brooklynnet-never:~# brctl show | |
bridge name bridge id STP enabled interfaces | |
br-lan 8000.0027224d9477 no eth0 | |
mesh-bridge 8000.e6b550deae4e no bat0 | |
root@brooklynnet-never:~# route | |
Kernel IP routing table | |
Destination Gateway Genmask Flags Metric Ref Use Iface | |
10.0.1.0 * 255.255.255.0 U 0 0 0 br-lan | |
root@brooklynnet-never:~# batctl if | |
wlan0: active | |
br-lan: active |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment