Hi all, i have strange problem with gatewat<>client setup as described here:
http://www.open-mesh.org/projects/batman-adv/wiki/Gateways
setup is simple
[dhcp server on bat0]<wired connection>[mesh node]<wireless connection>[client]
server configuration:
root@droch:~# ifconfig bat0 Link encap:Ethernet HWaddr a2:a1:ff:98:cd:37 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5541 errors:0 dropped:0 overruns:0 frame:0 TX packets:3636 errors:0 dropped:20 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:506784 (494.9 KiB) TX bytes:364485 (355.9 KiB)
eth0 Link encap:Ethernet HWaddr 00:1d:09:36:96:84 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:20020 errors:0 dropped:0 overruns:0 frame:0 TX packets:12193 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1519028 (1.4 MiB) TX bytes:820498 (801.2 KiB) Interrupt:16
root@droch:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 bat0
root@droch:~# batctl if eth0: active
root@droch:~# batctl gw server (announced bw: 1024MBit/1024MBit)
dhcp daemon (isc-dhcp-server 4.2.2) running on bat0
mesh node configuration:
ifconfig bat0 Link encap:Ethernet HWaddr 12:cb:4a:61:c5:0c inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:154 errors:0 dropped:0 overruns:0 frame:0 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:14327 (13.9 KiB) TX bytes:14836 (14.4 KiB)
eth0 Link encap:Ethernet HWaddr 00:0d:b9:24:e3:44 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3626 errors:0 dropped:0 overruns:0 frame:0 TX packets:1898 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:232959 (227.4 KiB) TX bytes:84767 (82.7 KiB) Interrupt:10 Base address:0x8000
wlan0 Link encap:Ethernet HWaddr 00:02:6f:b8:95:5e UP BROADCAST RUNNING MULTICAST MTU:1528 Metric:1 RX packets:3539 errors:0 dropped:0 overruns:0 frame:0 TX packets:2134 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:161096 (157.3 KiB) TX bytes:173733 (169.6 KiB)
root@proto-3:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 bat0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 bat0
root@proto-3:~# batctl if eth0: active wlan0: active
root@proto-3:~# batctl gwl Gateway (#/255) Nexthop [outgoingIF]: gw_class ... [B.A.T.M.A.N. adv 2012.2.0, MainIF/MAC: eth0/00:0d:b9:24:e3:44 (bat0)] 00:1d:09:36:96:84 (255) 00:1d:09:36:96:84 [ eth0]: 119 - 1024MBit/1024MBit
client configuration:
ifconfig bat0 Link encap:Ethernet HWaddr d6:50:dd:4d:54:75 inet addr:192.168.2.135 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::d450:ddff:fe4d:5475/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1664 errors:0 dropped:0 overruns:0 frame:0 TX packets:1728 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:174732 (170.6 KiB) TX bytes:170468 (166.4 KiB)
mp1 Link encap:Ethernet HWaddr 00:21:a4:35:36:26 UP BROADCAST RUNNING MULTICAST MTU:1528 Metric:1 RX packets:8248 errors:0 dropped:0 overruns:0 frame:0 TX packets:5910 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:477461 (466.2 KiB) TX bytes:560034 (546.9 KiB)
batctl if mp1: active
batctl gwl Gateway (#/255) Nexthop [outgoingIF]: gw_class ... [B.A.T.M.A.N. adv 2012.2.0, MainIF/MAC: mp1/00:21:a4:35:36:26 (bat0)] => 00:1d:09:36:96:84 (225) 00:02:6f:b8:95:5e [ mp1]: 119 - 1024MBit/1024MBit
batctl gw client (selection class: 20)
dhcp client is dhcpcd version 3.2.3.
In first step all work fine, bring up bat0 on client, bring up dhcp on it, it get ip address and work fine. but if i just bring bat0 on client down then up it don't work, it see gateway, i see dhcp request and replies on server on bat0, but on mesh node and client i don't see any reply in batctl tr nor tcpdump and it stay in this state forever.
But, if i bring bat0 on client down, wait 200 seconds until client is removed from originators on server by timeout and bring bat0 on client back up it starts working again and get ip from dhcp server.
On all batman nodes i use batman-adv version 2012.2.0.
C уважением With Best Regards Георгиевский Юрий. Georgiewskiy Yuriy +7 4872 711666 +7 4872 711666 факс +7 4872 711143 fax +7 4872 711143 Компания ООО "Ай Ти Сервис" IT Service Ltd http://nkoort.ru http://nkoort.ru JID: GHhost@icf.org.ru JID: GHhost@icf.org.ru YG129-RIPE YG129-RIPE