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