On Saturday 03 April 2010 06:54:02 Marek Lindner wrote:
Ok, since your setup is rather small I would suggest going with the easiest solution possible. I'm always a big fan of making little steps that work well instead of aiming for the big goal which you never reach because you die in the process of getting there.
In a classical batman-adv setup the router(s) with the internet connection run a DHCP server and provide IPs/default route/etc for all the nodes & wifi- clients in range.
To connect the VPNs I see 2 feasible approaches:
- You run batman-adv over the VPN which will bring some overhead since the
routing messages will be relayed over the VPN. Depending on the number of nodes this may or may not be an issue. To keep things simple all nodes run in the same IP address space.
We decided to keep it simple for testing. We changed the netmasks of all ip adresses (VPN and Wifi) from /24 to /16 but it doesnt work.
I can see all Nodes with # batctl o
but not with ping.
------------- root@OpenWrt:~# cat /etc/config/network config 'interface' 'loopback' option 'ifname' 'lo' option 'proto' 'static' option 'ipaddr' '127.0.0.1' option 'netmask' '255.0.0.0'
config 'interface' 'lan' option 'proto' 'dhcp' option 'ifname' 'eth0'
config 'interface' 'mesh' option 'type' 'bridge' option 'ifname' 'ath0 bat0' option 'proto' 'static' option 'ipaddr' '10.18.1.1' option 'netmask' '255.255.0.0'
------------- root@OpenWrt:~# ifconfig ath0 Link encap:Ethernet HWaddr 00:24:01:17:B7:55 inet6 addr: fe80::224:1ff:fe17:b755/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:2324 (2.2 KiB)
ath1 Link encap:Ethernet HWaddr 06:24:01:17:B7:55 inet6 addr: fe80::424:1ff:fe17:b755/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:580 errors:0 dropped:18 overruns:0 frame:0 TX packets:337 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18512 (18.0 KiB) TX bytes:17574 (17.1 KiB)
bat0 Link encap:Ethernet HWaddr 9A:14:E1:3B:F4:88 inet6 addr: fe80::9814:e1ff:fe3b:f488/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1476 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:16 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:944 (944.0 B)
br-mesh Link encap:Ethernet HWaddr 00:24:01:17:B7:55 inet addr:10.18.1.101 Bcast:10.18.255.255 Mask:255.255.0.0 inet6 addr: fe80::ec23:2fff:fe06:37f3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:2034 (1.9 KiB)
eth0 Link encap:Ethernet HWaddr 00:24:01:17:B7:56 inet addr:192.168.178.59 Bcast:192.168.178.255 Mask:255.255.255.0 inet6 addr: fe80::224:1ff:fe17:b756/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3782 errors:0 dropped:0 overruns:0 frame:0 TX packets:791 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:533232 (520.7 KiB) TX bytes:93762 (91.5 KiB) Interrupt:4 Base address:0x1000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:19 errors:0 dropped:0 overruns:0 frame:0 TX packets:19 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1958 (1.9 KiB) TX bytes:1958 (1.9 KiB)
tap0 Link encap:Ethernet HWaddr 42:49:50:CF:69:3E inet addr:10.18.0.8 Bcast:10.18.255.255 Mask:255.255.0.0 inet6 addr: fe80::4049:50ff:fecf:693e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:402 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:31752 (31.0 KiB) TX bytes:368 (368.0 B)
wifi0 Link encap:UNSPEC HWaddr 00-24-01-17- B7-55-00-00-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5172 errors:0 dropped:0 overruns:0 frame:424 TX packets:374 errors:1 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:195 RX bytes:716632 (699.8 KiB) TX bytes:29035 (28.3 KiB) Interrupt:3 Memory:b0000000-b000ffff
------------- root@OpenWrt:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.178.0 * 255.255.255.0 U 0 0 0 eth0 10.18.0.0 * 255.255.0.0 U 0 0 0 br-mesh 10.18.0.0 * 255.255.0.0 U 0 0 0 tap0 default 192.168.178.1 0.0.0.0 UG 0 0 0 eth0
------------- root@OpenWrt:~# traceroute 10.18.0.3 traceroute to 10.18.0.3 (10.18.0.3), 30 hops max, 38 byte packets 1 10.18.1.101 (10.18.1.101) 3002.434 ms !H 3010.472 ms !H 3009.891 ms !H
10.18.0.3 is a vpn node (tap0) and running batman-adv but traceroute thinks, that it can be connected on the mesh-bridge???
I can´t figure out his problem. Hopefully someone of you can help me.
Greetings Floh1111